First-Chance Exceptions(Read 15983 times)
First-Chance Exceptions on: September 21, 2011, 07:51:38 PM
I'm using Virtual Serial Port ActiveX Control 7.0 within a managed C++ class library in Visual Studio 2010. It seems to be working fine, but when I run my application in the VS2010 debugger, I get a number of first-chance exception messages.

I am dynamically creating 3 virtual serial ports following the instructions here:

When the EndInit function is called the following exceptions messages appear:

First-chance exception at 0x0540416d in MyApp.exe: 0xC0000096: Privileged instruction.
First-chance exception at 0x0545b9f6 in MyApp.exe: 0xC000001D: Illegal Instruction.
First-chance exception at 0x0545fa08 in MyApp.exe: 0xC0000005: Access violation reading location 0x00000000.

The "access violation" exception is quickly generated about 75 more times, and then, as the application runs the exact same "access violation" exception is generated every 10 seconds or so.

I have set the target machine to x86, as suggested by the above reference.  Still the first-chance exceptions persist.  Not sure what to do next.  I really want make these exceptions to go away before shipping the software to my customer.

Please help!  Thanks.

Re: First-Chance Exceptions Reply #1 on: September 28, 2011, 04:15:33 PM
For those of you that care (Bueller? Bueller? ;)), here is the response I got from

"It looks like these exception messages have something to do with our protection system.  You can just ignore these messages if they only appear in the Visual Studio log."

Re: First-Chance Exceptions Reply #2 on: December 09, 2011, 01:22:15 PM
Got the same problem earlier. Thanks for this information. It saved me a lot of time and effort.


Sitemap 1 2 3 4 5