捕获所有未处理的exeptions不适用于所有计算机。 [英] catch all unhandled exeptions does not work for all computers.
问题描述
我正在使用:
Application.ThreadException + = new
System.Threading.ThreadExceptionEventHandler(Appli cation_ThreadException);
>
但是,当运行WinXP SP2的另一台运行异常时我的函数没有运行,我不明白为什么。而是出现
Windows错误报告屏幕。以上不应该工作
无论如何?我做错了什么?
Zytan
I am using:
Application.ThreadException += new
System.Threading.ThreadExceptionEventHandler(Appli cation_ThreadException);
But, my function is not run when an exception is thrown on another
computer running WinXP SP2, and I have no idea why. Instead, the
Windows error report screen appears. Isn''t the above supposed to work
no matter what? What am I doing wrong?
Zytan
推荐答案
Zytan< zy ** ********@gmail.com写道:
Zytan <zy**********@gmail.comwrote:
我正在使用:
Application.ThreadException + =新的
System.Threading.ThreadExceptionEventHandler(Appli cation_ThreadException);
但是,当另一个异常被抛出时我的函数没有运行
计算机运行WinXP SP2,我不知道为什么。而是出现
Windows错误报告屏幕。以上不应该工作
无论如何?我究竟做错了什么?
I am using:
Application.ThreadException += new
System.Threading.ThreadExceptionEventHandler(Appli cation_ThreadException);
But, my function is not run when an exception is thrown on another
computer running WinXP SP2, and I have no idea why. Instead, the
Windows error report screen appears. Isn''t the above supposed to work
no matter what? What am I doing wrong?
你能发一个简短但完整的程序来演示
的问题吗?
见 http://www.pobox.com/~skeet/csharp/ complete.html 了解详情
我的意思是什么。
-
Jon Skeet - < ; sk *** @ pobox.com>
http://www.pobox .com / ~siget 博客: http://www.msmvps.com /jon.skeet
如果回复小组,请不要给我发邮件
Could you post a short but complete program which demonstrates the
problem?
See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Hello Zytan,
什么样的applocation?基于winform?
尝试使用AppDomain.CurrentDomain.UnhandledException处理
---
WBR,Michael Nemtsev [.NET / C#MVP]。
我的博客: http://空格。 live.com/laflour
团队博客: http:/ /devkids.blogspot.com/
我们大多数人面临的最大危险并不是我们的目标太高而且我们
想念它,但它太低了我们达到它 (c)米开朗基罗
ZI正在使用:
Z>
ZApplication.ThreadException + = new
ZSystem.Threading.ThreadExceptionEventHandler(Appl ication_ThreadExcept
Zion);
ZBut,我的函数在另一个异常被抛出时不运行
Zcomputer运行WinXP SP2,我不明白为什么。而是出现
ZWindows错误报告屏幕。以上不应该是什么?不管是什么?我做错了什么?
Z>
ZZytan
Z>
Hello Zytan,
What kind of applocation? winform based?
Try to use AppDomain.CurrentDomain.UnhandledException handling
---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
ZI am using:
Z>
ZApplication.ThreadException += new
ZSystem.Threading.ThreadExceptionEventHandler(Appl ication_ThreadExcept
Zion);
ZBut, my function is not run when an exception is thrown on another
Zcomputer running WinXP SP2, and I have no idea why. Instead, the
ZWindows error report screen appears. Isn''t the above supposed to
Zwork no matter what? What am I doing wrong?
Z>
ZZytan
Z>
这是一篇简短的文章,总结了很多这方面的内容,包括控制JIT Debugger Windows Error屏幕弹出窗口的Registry
设置:
http://www.eggheadcafe.com/articles/20051205.asp
Peter
-
网站: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
短网址&更多: http://ittyurl.net
Zytan写道:
Here is a short article that summarizes a lot of this, including Registry
setting that controls the JIT Debugger Windows Error screen popup:
http://www.eggheadcafe.com/articles/20051205.asp
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"Zytan" wrote:
我正在使用:
Application.ThreadException + = new
系统。 Threading.ThreadExceptionEventHandler(Appli cation_ThreadException);
但是,当运行WinXP SP2的另一台运行异常时我的函数没有运行,而且我有不明白为什么。而是出现
Windows错误报告屏幕。以上不应该工作
无论如何?我做错了什么?
Zytan
I am using:
Application.ThreadException += new
System.Threading.ThreadExceptionEventHandler(Appli cation_ThreadException);
But, my function is not run when an exception is thrown on another
computer running WinXP SP2, and I have no idea why. Instead, the
Windows error report screen appears. Isn''t the above supposed to work
no matter what? What am I doing wrong?
Zytan
这篇关于捕获所有未处理的exeptions不适用于所有计算机。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!