Results 1 to 5 of 5

Thread: [2005] Immediate Window - a lot of first chance exceptions!!!

  1. #1

    Thread Starter
    Frenzied Member Icyculyr's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    1,934

    [2005] Immediate Window - a lot of first chance exceptions!!!

    Hi, I have no errors in my program, or warnings, or anything, it runs great.

    But I see in the immediate window when my program is running a lot of errors, and I am wondering what they mean?
    Code:
    A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in System.dll
    A first chance exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll
    A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in System.dll
    A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in System.dll
    A first chance exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll
    A first chance exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll
    A first chance exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll
    A first chance exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll
    A first chance exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll
    A first chance exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll
    A first chance exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll
    What do they mean?

    Thanks

  2. #2
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,051

    Re: [2005] Immediate Window - a lot of first chance exceptions!!!

    There are some good explanations on this forum, just search for "first chance exception".
    You have a setting in VS set to show First Chance Exceptions. If you don't want to view them, find the setting and change it.

  3. #3

  4. #4

    Thread Starter
    Frenzied Member Icyculyr's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    1,934

    Re: [2005] Immediate Window - a lot of first chance exceptions!!!

    Are they bad, is what I am wanting to know?

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Immediate Window - a lot of first chance exceptions!!!

    A first chance exception message is merely telling you that an exception has been thrown. Exceptions should be avoided if reasonably possible but they are a part of programming. If your app doesn't crash then it means that all those exceptions are being handled. If they're being handled by your code then you should examine that code to see whether it's reasonable that they are all being thrown in the first place. If they're being handled by system code then you've got no control over it.

    Of course, you could almost certainly have got that information by following the links provided. " Ask first, look for yourself later" is not the best MO for a software developer.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width