“检测到LoaderLock". [英] "LoaderLock was detected"

查看:177
本文介绍了“检测到LoaderLock".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在以调试模式关闭任何VS2005应用程序后,我会收到此消息.VS2005保持调试模式,直到我明确杀死我的应用程序为止.

起初,我以为它只在Avalon应用程序上可用,但是我可以在任何常规WinForms应用程序上使用它,甚至是我在VS2005上重新编译的应用程序...

知道什么意思吗?

检测到

LoaderLock
消息:尝试在OS Loader锁内部进行托管执行.不要尝试在DllMain或图像初始化函数中运行托管代码,因为这样做可能导致应用程序挂起.

解决方案

尝试在使用其他托管代码(例如DirectX sdk,例如ex.)的同时运行托管(垃圾回收)代码,并且Windows无法与其他线程共享Loader Lock,如果此进程保留了该代码或不响应释放它以使其他线程继续运行. /blockquote>

I get this message after closing any VS2005 application in Debug mode.... VS2005 stays in debug mode until I explicitly kill my app.

At first, I thought it was only on Avalon apps, but I get it on any regular WinForms app, even ones that I am recompiling on VS2005...

Any idea what it means?

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.

解决方案

You are attempting to run managed (garbage collected) code while using other managed code (like directx sdk for ex.) and windows cannot share Loader Lock with other threads if this process is holding it or not responding to releasing it for other threads to continue.


这篇关于“检测到LoaderLock".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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