LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a LabView DLL from VB

I am running an NI example which is here

http://zone.ni.com/devzone/cda/epd/p/id/3990


and when I run it the new VB environment converts the program to the new .net structure ok.
However, when it runs it gives this error

Loader lock was detected


Attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.

Any ideas?





0 Kudos
Message 1 of 2
(2,747 Views)
Hi tomnz,

Is this the error you are seeing?

'C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\7.0\DNCompInfo.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.'

National Instruments has a KnowledgeBase article that discusses this issue. Please give this a try. If you still receive this error, please let me know.
Donovan
0 Kudos
Message 2 of 2
(2,711 Views)