LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem loading multiple CVI DLL from an external application

I work with CVI 5.5 on Win2K and when I build a DLL and load it from a Delphi 5.0 application, the CVIRTE seems to be all mixed up. In my code I do multiple LoadLibrary from different thread but the user interface created from the CVI DLL gets all mixed up. When I close the user interface #1 it close the user interface #2. And at the end the DLL exit and close the CVIRTE and there is still one instance of the DLL running. This append even with different DLL. I have some static variable in my code and they are shared between the instances of the DLL...In Win2k it's not supposed to be like that. Each instance of the DLL is supposed to have it's own data space.

Hope someone can help.

Gil
les
0 Kudos
Message 1 of 2
(2,804 Views)
Gilles:

Are you saying that you have a multithreaded DLL that loads the CVIRTE in each thread? When you close a UI in one thread, the others are effected, and closing your DLL does not successfully unload the CVIRTE DLLs? Is that a correct summary of you situation?

Gilles, it may be best to continue this discussion with National Instruments' Technical Support. You can contact our technical support via email at http://www.ni.com/ask or by calling the technical support number for your area listed on the page at http://www.ni.com/support/wrldwide.htm. Please include as many details as you can about your problem.

Thanks,

Chris Wood
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,804 Views)