Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Nationalizations.DAQmx.DLL "LoaderLock" issue in my VS2012

Solved!
Go to solution

When I Run the DAQ C# example which is located at NI-DAQ\Examples\DotNET4.0\Analog In\Measure Voltage\AcqOneVoltageSample\CS,encontered an error that saying: 

NationalInstruments. DAQmx. dll is trying to execute managed code in the OS loader lock. Do not try to run managed code inside DllMain or image initialization functions, as doing so will cause the application to hang.
My VS version is 2012. I tried again in  DotNET4.5 diretory , it encontered another error with a short MessageBox saying cannot run this program(probably means this, I cannot repeat it all).
Would anyone see this issue, please give some advise.
0 Kudos
Message 1 of 2
(1,064 Views)
Solution
Accepted by topic author Leo_Liao

I find a bug fixes release in the next DAQmx version 21.3(Because of mine in V21.0), as the webside:DAQmx 21.3 Bug Fixes - NI

There you can see a similar issue of crash on launch. So that maybe the problem. And I update DAQmx to the newest : recently is  2023.Q2, then solve this issue. 

0 Kudos
Message 2 of 2
(1,035 Views)