Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System InvalidCast Exception

Status
Not open for further replies.

kateryn

Programmer
Aug 4, 2003
8
0
0
US
Anyone have any suggestions for tracking down the an error occuring in the dll:

I've already got try/catch on all my code. When in debug mode it comes up with unhandled exception :

Systems.Windows.Forms.dll
SystemInvalidCastException

Since I've got all my code in try/catch blocks - this must be occurring in the auto-gen code - which drives me crazy. How do I find this kind of error and get rid of it?
 
Does it highlight the code that generated the error? Try it with Option Strict Off - do you still get the error?

There's a thin line between genius, and insanity!
 
Thank you - i set it on for both explicit and strict and found the problem - it's with the checkboxes - I have them setup in the tables as bits with a Y or N in them and the checkboxes well- they just plain didn't like it.

Kateryn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top