LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

VB6 and LV6i lock up while exiting the degugger after calling a CVI created DLL.

VC++ calls the CVI DLL without problems. While debugging a VB6 or LV6i application that calls the CVI DLL, the editor locks up. I've confirmed the CloseCVIRTE() function has been called and returns when the CVI DLL detach process executes.
0 Kudos
Message 1 of 2
(2,909 Views)
Hello mrb,
We have called thousands of CVI DLLs from both Visual Basic and LabVIEW without them crashing, so this is not a widespread issue. First, you might try calling your DLL on another computer to determine if the issue is specific to your development machine. Next I would try building a very simple DLL (possibly \samples\dll\basic\cvidll.prj) and test again to determine if the issue is specific to your DLL or if it occurs with all CVI DLLs built on your development machine. Also, if you are using the DLL in VB, make sure that the calling convention of your exported DLL functions is __stdcall (make sure that LV's calling convention matches whatever the DLL is using). Does the DLL call any other libraries (GPIB, VISA, VXI, IMAQ, and so forth) and l
eave a handle/reference open? If this does not help, then we will require additional information in order to help further. What versions of CVI, LV, and VB are you using? What does the DLL do? You may consider contacting us directly at http://www.ni.com/ask >> E-Mail NI Engineers.

Jeremiah Cox
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,909 Views)