[split] dll issues
-
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 ;-)
-
How to fix over run.
-
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...
-
Hi Gerolf
I didnt exactly get what you want me to do can you please explain clearly.
-
Hi Gerolf
That was the typing mistake in actual I was using data() only. But still same problem.
-
Can anyone please help me to resolve this.
-
Well, you might provide a small, compilable example that reproduces your problem, which can be downloaded somewhere.