I made a application in VB.Net. But some users face crash upon startup. That is "A problem caused this program from working correctly" with just one button "Close the program". Since there are lot of things happening when the app loads, is it possible to know what caused the issue?
相关问题
- 'System.Threading.ThreadAbortException' in
- how to use special characters like '<'
- How do I bind a DataGridViewComboBoxColumn to a pr
- Partial Form Class C# - Only display code view for
- Can we add four protocols to ServicePointManager.S
相关文章
- vb.net 关于xps文件操作问题
- Sort TreeView Automatically Upon Adding Nodes
- Where does this quality loss on Images come from?
- Checking for DBNull throws a StrongTypingException
- Using the typical get set properties in C#… with p
- Missing partial modifier on declaration of type
- PropertyGrid - Possible to have a file/directory s
- Why do base Windows Forms form class with generic
If the "Application Framework" is enabled in your project's properties, click the "View Application Events" button on the "Application" project properties page. Then add an event handler:
If you are not using the application framework, you should put a try catch block around your entire
Main
method. However, that will only catch exceptions that occur on the primary thread. If your application is multi-threaded, you can handle exceptions from all threads by creating a method like this:And then attach it to your current domain's
UnhandledException
event, like this:That event handler will then get called for all unhandled exceptions from anywhere in your domain, regardless of the current thread.