My friend Jeff Berkowitz got nailed by the EnableVisualStyles bug in WinForms 1.1 that causes a weird SEHException when calling ShowDialog(). Jeff and his team really push WinForms to the limit and he finds some crazy stuff, including a scary Resource Naming problem in VS.NET 2003.
CLRSpy, Jeff Key, and Adam Nathan to the rescue though. Although Jeff had debugged the problem and figured it out himself, CLRSpy would see the as an error probe and break on it.
Adam suggests three possible workarounds:
Of course, using the manifest is the preferred method methinks.
Ads by The Lounge