CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2002
    Posts
    1,134

    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

  2. #2
    Join Date
    Oct 2002
    Posts
    1,134

    Re: Smart Pointer and Access Violation

    Bump....
    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
  •  





Click Here to Expand Forum to Full Width

Featured