03-07-2006 06:58 PM
03-08-2006 02:51 PM
03-08-2006 03:16 PM
Hi Sarah,
For the testing purpose, I only popup a message in the dll function (use MessagePopup). It doesn't crash at the time I call the dll function, but at the time I exit my Visual studio application.
I can explain more details as follows:
+ This is the only dll function I used in the application.
+ The application crashed when exiting, not when the dll function is called. It always occurs, even the dll function is not called. This dll function is only call if I press a button on the visual studio application. If I just start the application and then I exit the application (without pressing the button to call the dll function), then the application also crashed when exitting. If I comment the dll function out, the application did not crash when exitting.
03-09-2006 05:29 PM
03-09-2006 05:48 PM
The knowledge base you suggested doesn't apply to my case since I don't pass any data into the dll or get any data out from the dll.
As I said before, I created this dll is just to see if VC++.NET can call a CVI dll, so inside of the dll function, it only does one thing is popup a message "Hello".
It still crashed when exitting the application even the dll function was not invoked (I don't press the button to invoke the dll function).
03-10-2006 11:08 AM - edited 03-10-2006 11:08 AM
Message Edited by sarahk on 03-10-2006 11:11 AM
03-13-2006 12:19 PM
Hello Sarah,
I didn't create any COM interface. As I said before, it is a very simple dll just for testing. It contains only one dll export function, named Func1.
Attach are the MyDll project, which is the dll project I created with CVI 7.1, and the UseMyDll, created in VC++.NET, project which is using the dll.
Thank you.
03-14-2006 01:36 PM
03-14-2006 02:53 PM
I can run other DLLs, created by MFC, successfully. CVI 7.1 and Visual Studio.NET are installed on the same machine that I used to run the program.
Thanks