为什么我所有的例外消息现在都以“越过本机/受管理的边界"结尾 [英] Why all my exceptions messages now end with "crossed a native/managed boundary"

查看:74
本文介绍了为什么我所有的例外消息现在都以“越过本机/受管理的边界"结尾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用调试选项,现在我所有的异常都像

I've being messing with the debug options and now all my exceptions are like

System.NullReferenceException越过了本机/托管边界.

System.NullReferenceException crossed a native/managed boundary.

有时,当发生异常时,VS要求我打开一些.net .cs文件,就好像我拥有源代码一样.我希望有一些恢复默认值"按钮.知道要改变它以使其正常工作需要什么吗?

Sometimes, when an exception occurs VS asks me to open some .net .cs file as if I have the source code. I wish there is some "Restore Defaults" button. Any idea what do I need to switch to make it work as it normally would?

推荐答案

当然,有一个恢复默认值"选项会影响大量设置(包括某些调试设置).

Of course, there is a "restore defaults" option that does affect a large number of settings (including some debug settings).

如果尚未尝试过,请使用导入和导出设置..."向导中的重置所有设置"选项,可以从工具"菜单访问.在重置之前,它会提示您保存当前设置.

If you haven't tried it yet, use the "Reset all settings" option in the "Import and Export settings..." wizard, accessed from the Tools menu. It prompts to save your current settings before it does the reset.

如果这确实解决了您的问题,并且您仍然想知道所做的更改,则可以使用同一向导再次保存设置,并在两个文件之间进行比较.

If this does resolve your problem, and you're still curious to know what you changed, you can then save your settings again using the same wizard, and perform a diff between the two files.

这篇关于为什么我所有的例外消息现在都以“越过本机/受管理的边界"结尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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