I am getting the following exception in my C#.Net program:
A first chance exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll First-chance exception at 0x000007feff75121b in myapp.exe: 0xC0000005: Access violation reading location 0x0000000000000000. A first chance exception of type 'System.AccessViolationException' occurred in CustomMarshalers.dll An unhandled exception of type 'System.AccessViolationException' occurred in CustomMarshalers.dll Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
I get it inside of a try/catch(Exception) block but it is never being caught.
I'm trying to debug it to see why it is happening but it is difficult to do that without catching it.
Should it be possible to catch a 0xC0000005 exception in C#.Net? (Framework 4.0 on Windows 2008 R2).
Thanks for any tips.