我如何捕捉异常 [英] how i can catch exceptions

查看:83
本文介绍了我如何捕捉异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我怎么能
在Silverlight中捕获应用程序上的所有运行时异常

因为有时我有例外,所以这些例外会关闭或隐藏表单中的所有内容
显示我的页面为空,带有白色背景的页面中没有任何内容

感谢您的帮助

hi everyone
how i can
catch all runtime exceptions on my application in silverlight

because sometime i have exceptions this exceptions closed or hide everything in my form
show my page is null nothing in my page with white background

thanks for any help

推荐答案

请参阅:

http://en.wikipedia.org/wiki/Exception_handling [ http://en.wikipedia.org/wiki/Structured_Exception_Handling#Structured_Exception_Handling [ http://msdn.microsoft.com/en-us/library/ms229005.aspx [ ^ ].

—SA
Please see:

http://en.wikipedia.org/wiki/Exception_handling[^],
http://en.wikipedia.org/wiki/Structured_Exception_Handling#Structured_Exception_Handling[^],
http://msdn.microsoft.com/en-us/library/ms229005.aspx[^].

—SA


您的xaml可能有错误.这是您获得白屏的时间.
在这种情况下,您可能无法直接调试.

http://msdn.microsoft.com/en-us/library/bb546955%28v = vs.90%29.aspx [ ^ ]可能会有所帮助.
There may be an error with your xaml. This is when you get the white screen.
In this case, you may not be able to debug directly.

http://msdn.microsoft.com/en-us/library/bb546955%28v=vs.90%29.aspx[^] might help.


除上述内容外,您还可以查看一些建议的链接
http://msdn.microsoft.com/en-us/library/cc189070 (v = vs.95).aspx [在Silverlight中捕获并处理WCF服务异常 [ http://msdn.microsoft.com/en-us/library/ee844556 (v = vs.95).aspx [在Silverlight中处理异常的最佳做法是什么 [ ^ ]
In addition to above you can also take a look some suggested link
http://msdn.microsoft.com/en-us/library/cc189070(v=vs.95).aspx[^]
Catch and Handle WCF Service Exceptions in Silverlight[^]
http://msdn.microsoft.com/en-us/library/ee844556(v=vs.95).aspx[^]
and
What is the best practice for exception handling in silverlight[^]


这篇关于我如何捕捉异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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