Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Nova - Development » rev630 - failing on WinXP using MonoDevelop
Re: rev630 - failing on WinXP using MonoDevelop Fri, 24 June 2011 13:12 Go to previous messageGo to previous message
Musmuris

 
Master Chief Petty Officer
Stars! Nova developer
Stars! Nova developer

Messages: 96
Registered: June 2011
evild00d wrote on Fri, 24 June 2011 12:45

Musmuris wrote on Fri, 24 June 2011 17:22

hate to say it but we should probably shove log4net in the code to log stuff like this


In general I would recommend that we just remove these kinds of general try-catchers entirely. A catch should make an effort to deal with the exception, not just report it and continue on its merry way while the application state is potentially corrupted. We might as well let the application crash if something unexpected goes wrong, and let the built-in .NET unhandled exception handler report the error for us.



You should never have an empty catch like that unless you want to ignore it.

However I'd rather catch and put a nicer error up and log the full exception. If the standard .NET one comes up then there's no way to get the stack trace for reporting. If we have a log file, or at lest a dialog showing the error, then we can get those reports posted. Even better if you can get some automated error reporting that sends any unhandled exceptions to a given email address.

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Completing the Forum Move
Next Topic: ClientState and .intel files
Goto Forum:
  


Current Time: Sat May 11 18:50:47 EDT 2024