04-06-2006 07:42 AM
<mda:msg xmlns:mda="http://schemas.microsoft.com/CLR/2004/10/mda">
<!--
DLL '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.
-->
<mda:loaderLockMsg break="true"/>
</mda:msg>
How can I catch this exception since it is very irritating for testing?
Thanx in advance,
Michel
06-28-2006 03:27 AM
Hi Michel,
I'm not sure how you are calling NI-DAQmx? Are you using the .Net Assemblies or have you build a LabVIEW DLL that calls DAQmx this way? If you like to use .Net I would recommend using the native .Net support included in the Driver. Is this the case?
As for this error, I did a couple of searches on it and it seems to be trapped by the Managed Debugging Assistants (MDAs) for more information see: http://msdn2.microsoft.com/en-us/library/d21c150d.aspx
Hope this helps,
Regards
Karsten
06-28-2006 03:34 AM
Karsten,
This is a fantastic forum but being a newbie I must be posting my questions in the wrong section. My last post about writedigitallines ( DAmx) recieved no replies but I'm flapping a bit now as the job cant continue until I sort it out. Any other clues to to where I might get some help ?
Sorry to bother you
Peter
06-28-2006 03:54 AM
Thank you!:manvery-happy:
From the link you gave I added a registry string value: "MDA" = "0".
Now when debugging with VC++ 2003 I get no nore exceptions when debugging my app.
regards,
Michel