[Qt-interest] system crash when using external dll
Vincent Cai
wcai at cypress.com
Wed Sep 21 10:39:26 CEST 2011
Dear all,
I have an algorithm which is developed in pure C language and deployed as dll in Qt Creator.
And I create an application project which will use the algorithm:
l If I add all the source files of the dll into application project, the application run well
in application.pro
SOURCES += D:/Alg_src/a.c \
D:/Alg_src/b.c \
D:/Alg_src/c.c \
D:/Alg_src/d.c \
D:/Alg_src/e.c \
l If I try to use the dll instead of source code, the system always crash at somewhere that calling the function in dll, but it is not the first calling;
I confirmed that I have copied the dll to the same directory of application.exe, and when running, the application.exe has loaded the dll and access some symbols in the dll successfully
in application.pro
LIBS+=$$quote(E:/xxx_perforce/CFT members/xxx/Projects/TSA/Qt/TSA-build-desktop/Alg/AlgTSA/debug/AlgTSA.dll)
Any difference between using source code and using dll?
Could anybody help?
Thanks,
Vincent.
________________________________
This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110921/506cb27e/attachment.html
More information about the Qt-interest-old
mailing list