KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Could someone explain to me why it is considered inapropriate to have a try-catch in the main() method to catch any unhandled exceptions? [STAThread] static void Main() { try { Application.Run(new Form1()); } catch (Exception e) { MessageBox.Show("General error: " + e.ToString()); } } I have the understanding that this is bad practice, but not sure why.
Tags (comma-separated)
Save Edits
Cancel