装载机锁定错误 [英] Loader lock error

查看:269
本文介绍了装载机锁定错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立在C ++的dll,在C#编写code。

I am building on C++ dll, by writing code in C#.

我得到一个错误,说

LoaderLock检测消息:
  试图OS内执行管理
  装载机锁。不要尝试运行
  在DllMain或映像内部管理code
  初始化函数,因为这样做
  会导致应用程序挂起。

LoaderLock was detected Message: 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.

我试过seraching这个错误是什么意思完全相同,但我画毫无意义的文章,大多是说这只是一个警告,我应该开关,关闭在Visual Studio。
其他解决方案似乎是由于iTunes中,或与DirectX编程时出现这个问题。我的问题是连接两者都不是。

I tried seraching what this error exactly means, but I am drawing pointless articles, mostly saying that it's just a warning, and I should switch that off in Visual Studio. The other solutions seem to be due to ITunes, or this problem occurring when programming with DirectX. My problem is connected to neither.

有人能解释一下,这是什么实际上意味着?

Can anybody explain, what this actually means?

推荐答案

您需要去调试菜单 - >例外,打开托管调试助手,发现LoaderLock并取消

you need to go to menu Debug -> Exceptions, open the Managed Debugging Assistants, find LoaderLock and uncheck

这篇关于装载机锁定错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆