VS 2008中的加载程序锁定 [英] Loader Lock in VS 2008

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

问题描述

我有一个VB.Net应用程序,该应用程序显示另一个线程的任务栏图标.线程模型为STA.在VS2008中运行该应用程序时,出现加载程序锁定异常.我可以从调试"设置中将其关闭,但是我不认为这是一个永久的解决方案.我最终部署的应用程序(调试版或发行版)会出现问题吗?此问题是否存在其他解决方法?在此先感谢

I have a VB.Net app that displays a tray icon from another thread. The thread model is STA. When I run the app in VS2008, I get a Loader Lock exception. I can turn it off from the Debug settings, but I do not feel that is a permanent solution. Will I be having issues in my final deployed app (either debug or release version)? Does any other workaround exist for this issue? Thanks in advance

推荐答案

您是否用谷歌搜索了该异常?

我发现了:

1)删除对LoaderLocking的程序集的引用. (我建议写下组装的路径,以免忘记它.)
2)重建.构建将失败.
3)重新添加对刚刚删除的程序集的引用.
4)重建并重新运行.

显然,它与您使用的其中一个程序集有关.如果您是我,我将在谷歌搜索例外时添加程序集名称.
Did you google that exception?

I found this:

1) Remove the references to the assemblies that are LoaderLocking. (I recommend writing down the path to the assembly so you don''t forget it.)
2) Rebuild. The build will fail.
3) Add back the references to the assemblies you just removed.
4) Rebuild and re-run.

It apparently has something to do with one of the assemblies you''re using. If I were you, I would add the assembly name when I google the exception.


感谢您的快速回答,先生.我现在不在工作的机器上.我一定会尝试您的建议.
Thanks for the quick answer, sir. I am not at my machine that I work on now. I will certainly try your advice.


这篇关于VS 2008中的加载程序锁定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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