I have done several presentations on SEH, and always get a reaction when I tell them to catch only what they can reasonably handle. At the latest presentation I did on SEH, someone pointed out that VS.NET automatically puts in a "catch e as Exception" clause for VB.NET applications! This should be at the top of the list for things the VS.NET team should remove. Go into a method inside a VB.NET project and type the word “try“, then hit enter. The following code is generated:
Try
Catch ex As Exception
End Try
See Chris Brumme's blog entry on SEH if you don't know why this is A Very Bad Thing.