如何在“启用 Visual Studio 托管进程”时禁用复选框呈灰色
我正在运行 Visual Studio 2008,并开发一个由商业应用程序实例化的 DLL。当应用程序终止时,我在调试器中收到有关 MDA 的错误。我发现一篇文章说通过关闭 Visual Studio 托管进程来禁用 MDA - 但是,当我转到项目的“调试”选项卡时,该复选框被选中并呈灰色。如何完全关闭托管进程或启用该复选框?
I am running Visual Studio 2008, and developing a DLL that is instantiated by a commercial application. When the application terminates, I get errors in the debugger about MDA's. I found an article that says to disable MDA's by turning off the Visual Studio Hosting Process - however, when I go to the Debug tab of my project, that checkbox is checked and greyed out. How can I either turn off the hosting process altogether, or enable the checkbox?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
DLL 项目中的“启用 Visual Studio 托管进程”框呈灰色,因为 DLL 项目不能有托管进程。托管进程只是 EXE 项目的一个选项。
为了禁用托管进程,您需要转到作为启动项目的 EXE 项目并禁用那里的托管进程。
The "Enable the Visual Studio Hosting Process" box is grayed out in the DLL project because a DLL project can't have a hosting process. The hosting process is only an option for EXE projects.
In order to disable the hosting process you'll need to go to the EXE project which is the startup project and disable the hosting process there.
谢谢,汉斯,这成功了。从“调试”菜单中,我选择了“异常”,在 MDA(托管调试助手)下展开,并禁用了困扰我的异常 - 在我的例子中是 LoaderLock。还要感谢 Jared,这解释了为什么它对于 DLL 项目是灰色的。
Thanks, Hans, that did the trick. From the Debug menu, I picked Exceptions, expanded under MDA (Managed Debug Assistants), and disabled the exception that was plaguing me - in my case, LoaderLock. Thanks, also, Jared - that explains why it is greyed out for the DLL projects.