-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
4.8.1, 4.8.3, 5.0.0 Beta 1, 5.4.1
dumpcpp: The generated code can sometimes have the wrong offset for the slots and therefore fail to find one in the metaobject. It is not clear to me as to why this actually happens but attached is a reproducible case for this.
The tlb attached can be used to generate the code via dumpcpp:
dumpcpp IOM.tlb -o IMO
If you look at the iom.cpp file, specifically:
qt_meta_stringdata_IOM__IHttpServerConnectionComIncoming()
then the Login() slot in particular seems to be offset in the wrong place because if you try to use this function like:
IOM::IomFactory *factory = new IOM::IomFactory; IOM::IHttpServerConnectionComIncoming *conn = factory->CreateWinAuthHttpServerConnection("url" ,"name"); conn->Login()
then it will fail with the following assert:
ASSERT: "id < 0 " in file qaxbase.cpp line 3718
For Gerrit Dashboard: QTBUG-27792 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
113982,3 | dumpcpp: Add Qt version and command line to header comment block. | 5.5 | qt/qtactiveqt | Status: MERGED | +2 | 0 |
114011,5 | dumpcpp: Do not generate qRegisterMetaType<> for vtable-stubs. | 5.5 | qt/qtactiveqt | Status: MERGED | +2 | 0 |