Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Unhandled exception

When I try to run one of the examples for NI-DAQmx I always get an unhandled exception
 
Looking at the output window I see:
 

<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

 

0 Kudos
Message 1 of 4
(7,408 Views)

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

Also:http://groups.google.com/group/microsoft.public.dotnet.framework/browse_thread/thread/f842bea28f03f2...

Hope this helps,

Regards

Karsten

0 Kudos
Message 2 of 4
(7,296 Views)

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

 

0 Kudos
Message 3 of 4
(7,287 Views)

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

 

0 Kudos
Message 4 of 4
(7,283 Views)