Issue Details
I opened one of the NI-DAQmx .NET examples using Visual Studio and when running the project I get the following exception message:
"Managed Debugging Assistant 'LoaderLock': 'DLL'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\NationalInstruments.DAQmx\v4.0_21.0.45.49311__4febd62461bf11a4\NationalInstruments.DAQmx.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."
The error message should look similar to the one below:
Any .NET application that calls the NI-DAQmx 21.0 .NET API will crash on launch showing an error message similar to this one: "System.IO.FileLoadException : Could not load file or assembly 'NationalInstruments.DAQmx.dll' or one of its dependencies. A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)"