Bundle of registered exceptions in Microsoft.VisualBasic.dll

I have a large project where we have projects with two DLLs converting from VB6 to VB.NET. We've fixed all the problems that caused compilation errors and most of the obvious startup problems, so we now have basically a program up and running. Exe is built from scratch in VB.NET using many functions from the converted dll (including GUI forms).

Ok, so far so good. Interestingly, 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 other types (but most of them are 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 ...

+2


source to share


2 answers


It is 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

+2


source


I'm not sure what exactly is causing your exceptions, but if it's in your code and surrounded by catch blocks (which probably does nothing but swallow the exception), you can set Visual Studio to break all errors, which should help you track down Problems.

In VS, go ahead Debug > Exceptions...

and you can check which exceptions are being thrown.



Hope it helps

+2


source







All Articles