李sir_Blog

博客园 首页 联系 订阅 管理

今天打算给自己的笔记本装个Visual Studio 2005,结果装到一半的时候,安装程序提示此版本与VISTA系统有兼容性的问题,于是退出了安装,程序也友好的提示可能有部分组件已经安装,于是又手动的卸载了已安装的组件,但Microsoft .NET Compact Framework不知道怎么卸载,也就没管他了!

    结果在运行别的程序时,突然弹出“Visual Studio Just-In-Time Debugger” 对话框,内容是:‘An unhanled win32 exception occurred in explorer.exe[2548]. just-in-time debuenabled. in visual studio,just-in-debugging can be enabled from tools/options/debugging/just-in-time.’
check the documentation index for 'just-in-time debugging,errors'for more information无论你选哪一项或直接关闭都会导致程序关闭。

    当然了,遇到这种问题首先是上网搜索各种解决方法,但好像只有一种方法,点选[开始]>[执行],在"开启"对话框中键入以下指令:

drwtsn32 -i

点选[确定],这个指令将会把Dr.Watson设定成预设的Debugger工具,这样就不会让您每次都会跳出这样的错误讯息了。

可是这个方法在我的系统里无法执行,根本就找不到drwtsn32 -i这个东东。

后来终于在一篇博客中找到了解决方法,个人认为是最佳方案了!!

解决方法在CSDN博客中:http://blog.csdn.net/bright60/archive/2006/08/24/1111592.aspx

    出现这种情况,往往是因为原先安装有VS,后来因某些原因(比如:卸载)导致VS无法使用!!
当系统中的有些软件出现错误时,会自动调用vs进行调试,但因为VS无法使用,就出现了visual studio just-in-time debugger窗口。

此方法主要就是删除指定的注册表
32位系统处理方法:
use the registry editor to delete the following registry keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger

64位系统处理方法:
On a 64-bit operating system also delete the following registry keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\DbgManagedDebugger

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/zeng_84_long/archive/2009/06/24/4293803.aspx

posted on 2011-01-04 11:06  李sir  阅读(29645)  评论(2编辑  收藏  举报