Qt 6.11 is out! See what's new in the release
blog
[split] dll issues
General and Desktop
13
Posts
4
Posters
5.3k
Views
1
Watching
-
I just split this out of another thread to make the issue more visible. Hope this helps getting it resolved fast.
-
I would guess that your buffer overrun corrupts the string you pass. Fix the overrun and your problem should go away.
-
... and merge with http://developer.qt.nokia.com/forums/viewthread/13631/ please ;-)
-
Check http://en.wikipedia.org/wiki/Buffer_overflow for more information on what is going wrong.
-
If I read the code, it is buggy:
@
Sample App Code:#include <QLibrary> #include <QString> #include <qdebug.h> //Function Pointers typedef QString (*Data)(QString); int main(int argc, char *argv[]) { // ... Data data= (Data) lib.resolve("Data"); if(bLoaded) { // .... QString strTagInfo = Data(strName); // here you use the type, not the pointer? } // ... return a.exec(); }@
I would recommend to rename the pointer data to something like dataFkt or similar, so such things are seen earlier...