原文地址 http://blog.sina.com.cn/s/blog_5afaebf50100ag26.html
Problem:
I have created a DLL in LabVIEW and have been trying to call it inVisual C++. Everytime I run my code I get a message telling me thata breakpoint is reached, although there is no breakpoint specified.Also, in the output window I get the following message.
'C:\Program Files\NationalInstruments\Shared\LabVIEW Run-Time\7.0\DNCompInfo.dll' isattempting managed execution inside OS Loader lock. Do not attemptto run managed code inside a DllMain or image initializationfunction since doing so can cause the application tohang.
Solution:
This issue would most likely be found on systems running .NETFramework Version 2.0. The LoaderLock managed debuggingassistant (MDA) attempts to execute managed code on a threadthat holds the Microsoft Windows operating system loader lock. Anysuch execution is illegal because it can lead to deadlocks and theuse of DLLs before they have been initialized by the operatingsystem's loader. In order to avoid this error message, turn off theManaged Debugging Assistant (MDA) by adding the following key inWindows Registry.
Note: Modifying the Windows registry incorrectly can lead toproblems. Be sure to back up the registry before making anychanges.
Add the string value "MDA"="0" inHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework
出错信息为:
解决办法:
说明: