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 12:45 Go to previous messageGo to previous message
evild00d is currently offline evild00d

 
Crewman 2nd Class
Stars! Nova developer
Stars! Nova developer

Messages: 14
Registered: July 2009
Location: Norway
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.

http://msdn.microsoft.com/en-us/library/0yd65esw.aspx

Although the catch clause can be used without arguments to catch any type of exception, this usage is not recommended. In general, you should only catch those exceptions that you know how to recover from. Therefore, you should always specify an object argument derived from System.Exception.


Put plainly: Don't catch if you can't recover.

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 07:13:11 EDT 2024