[Qt-interest] system crash when using external dll

Vincent Cai wcai at cypress.com
Wed Sep 21 15:46:52 CEST 2011


Could anybody give me some hints, so that I can try something to continue my works. :)
Any reference document or any debug method is welcome.

I Love Qt!
From: qt-interest-bounces+wcai=cypress.com at qt.nokia.com [mailto:qt-interest-bounces+wcai=cypress.com at qt.nokia.com] On Behalf Of Vincent Cai
Sent: 2011年9月21日 16:39
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] system crash when using external dll

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.

________________________________
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/15ceb170/attachment.html 


More information about the Qt-interest-old mailing list