Jump to content

Debugging exceptions

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Shaddix

Shaddix

    Programmer

  • Members
  • PipPipPipPip
  • 102 posts
When running my program Visual Studio gives me a load of exceptions:

A first chance exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll

A first chance exception of type 'System.Exception' occurred in AutomaatVerhuur.exe

A first chance exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll

A first chance exception of type 'System.Exception' occurred in AutomaatVerhuur.exe

A first chance exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll

A first chance exception of type 'System.Exception' occurred in AutomaatVerhuur.exe

A first chance exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll

A first chance exception of type 'System.Exception' occurred in AutomaatVerhuur.exe

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

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

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

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

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

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

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

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

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

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

A first chance exception of type 'System.NullReferenceException' occurred in AutomaatVerhuur.exe

the program runs fine, but it's a project for school so I have to solve these exceptions

I have option strict and option explicit both on, so I'm surprised I can run the program without any problem

is there an easy way to find the cause of such an exception? something to find the linenumber of the exception or something?

#2
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,248 posts
David Kline : What is a First Chance Exception?