First Chance Exception

  • Thread starter Thread starter Tommy
  • Start date Start date
T

Tommy

I get this message in the output window of my app I just converted from VS
2003 to 2005. It's a VB.Net app.

A first chance exception of type 'System.InvalidCastException' occurred in
Microsoft.VisualBasic.dll

How can I find these exceptions so I can take care of them? They do not show
up in the errors or warnings window.

Thanks
Tommy
 
Tommy said:
A first chance exception of type 'System.InvalidCastException'
occurred in Microsoft.VisualBasic.dll

How can I find these exceptions so I can take care of them? They do
not show up in the errors or warnings window.

Hi Tommy. This (somewhat misleading) message does not indicate any real
error. It's just an exception that's occurring and being handled correctly
within the VB runtime. Visual C++ programmers often see dozens of these. If
the error required action from you, the debugger would take you to the
location where the error is occurring and show you the error information.
Here's a similar question at another forum:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=200288&SiteID=1

I hope this helps.
 
Back
Top