Exception.Data population bug?

Posted by Christopher on Stack Overflow See other posts from Stack Overflow or by Christopher
Published on 2010-03-16T20:19:32Z Indexed on 2010/03/16 20:21 UTC
Read the original article Hit count: 578

Filed under:
|
|

Okay, .NET geniuses, here's the relevant part of my code:

    adapter.Fill(table);

    return;
}
catch(Exception ex)
{
    SqlException sqlEx = ex as SqlException;

I have an exception that's being thrown by adapter.Fill(), and when I put a breakpoint on the first line in the exception handler, the Exception.Data property already contains a key that is unique to my application.

The thing is that it does not happen every time, but only when this exception is thrown within ~2 seconds of it last being thrown.

Explain that!! :)

Thanks!

© Stack Overflow or respective owner

Related posts about .NET

Related posts about exception