Browse by Tags

Correct generic exception handling (catch(Exception){ ... })
Published Sat, Feb 21 2009 1:46 PM | Ramon Smits
A very nice comment tail is growing at the post " Why catch(Exception)/empty is bad " on the CLR team blog . I tend to agree but there are perfectly valid reason's to do a generic catch but with a correct handler, an empty handler is *always...
COM Exceptions and the ErrorCode property
Published Fri, Dec 5 2008 2:04 PM | Ramon Smits
Today I fixed a nasty bug in one of our applications. The first version had something like the following code construction: Type t = Type.GetTypeFromProgID("My.ComComponent", serverName); var component = (ComThingie)Activator.CreateInstance...