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.