|
-
June 22nd, 2005, 12:41 PM
#1
Smart Pointer and Access Violation
I have a problem - I think - that's driving me crazy. I have a smart pointer declared as follows:
Code:
#import "C55 Library.dll" no_namespace
IDecodeC55Ptr pDecodeC55;
I create the COM object within my InitDialog procedure:
Code:
HRESULT hr = pDecodeC55.CreateInstance( __uuidof( DecodeC55 ) );
When I use the debugger to step through this, I get an error message twice: "First chance exception in junk.exe (NTDLL.DLL): 0xC0000005: Access Violation"
The thing is that CreateInstance then returns S_OK, and the library does get loaded.
Can anybody shed some light on what's going on here? And whether or not I should be worried?
Regards
Robert Thompson
-
June 23rd, 2005, 06:56 AM
#2
Re: Smart Pointer and Access Violation
Regards
Robert Thompson
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|