您的应用程序中发生了未处理的异常。!!! [英] Unhandled exception has occurred in your application.!!!

查看:297
本文介绍了您的应用程序中发生了未处理的异常。!!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天,

我在另一台PC上安装了我的程序之后,一切都运行正常,除非我想更新数据库记录时遇到此错误:



您的申请中发生了未处理的异常。如果单击继续,应用程序将忽略此错误并尝试继续。如果你点击退出,应用程序将立即关闭





我该怎么办?

Good day to all,
After i have installed my program on another PC, everything was working perfectly except when i want to update the data base record i am facing this error:

Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately


What should i have done?

推荐答案

使用 try ... catch 阻止或处理程序入口点 AppDomain.CurrentDomain.UnhandledException 并将异常写入文本文件,以便您可以找到代码失败的位置,然后修复它。
Use try...catch blocks or handle your program entry point AppDomain.CurrentDomain.UnhandledException and write the exception to a text file so you can find out where your code is failing and you can fix it.


这篇关于您的应用程序中发生了未处理的异常。!!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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