Reputation: 22462
I have a large project where we have 2-3 dll projects that are converted from VB6 to VB.NET. We have fixed all the issues that caused compilation errors, and most of obvious issues in running, so now we have basically a program up and running. The exe is created from scratch in VB.NET, using a lot of functionality from the converted dll's (including GUI forms).
OK, so far so good. What I wonder is when I run the program in debug mode, I get a bunch of warnings in the "Immediate Window" saying:
A first chance exception of type 'System.Exception' occurred in Microsoft.VisualBasic.dll
...and some of other type (but most of them in Microsoft.VisualBasic.dll).
I was wondering if this is common in projects converted from VB6, or if it is caused by bad design in our code...
Upvotes: 2
Views: 900
Reputation: 11637
I am not sure of what exactly is causing your exceptions, but if it is in your code and surrounded by catch blocks (that probably do nothing, other than swallow the exception), you can set Visual Studio to break on all errors, which should help you track the problems down.
In VS, go Debug > Exceptions...
and you can check what type of exceptions it will break on.
Hope that is of help
Upvotes: 2
Reputation: 12538
It's not limited to converted projects. Some info here :
http://blogs.msdn.com/davidklinems/archive/2005/07/12/438061.aspx
http://www.helixoft.com/blog/archives/24
Upvotes: 2