Re: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call.
From: Gold'n'Green (andy_at_adsgroup.com)
Date: 10/18/04
- Next message: Deepak Natarajan: "Instantiating Remote Objects through COM"
- Previous message: mhe: "Re: Firing events from ActiveX-control to Javascript in IE"
- In reply to: John Phillips: "Re: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call."
- Next in thread: John Phillips: "Re: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call."
- Reply: John Phillips: "Re: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call."
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 18 Oct 2004 22:10:52 +0100
John,
Unfortunately that is just an error that sneeked in from a previous
attempted fix. It fails the sam way without that error.
Thanks anyway.
Regards,
Andy.
"John Phillips" <jjphillipsREMOVE@REMOVEhotmail.com> wrote in message
news:uH5VSaUtEHA.3016@TK2MSFTNGP12.phx.gbl...
> Well, for starters, I wouldn't assign a pointer of type IMemberAuth to
> pointer of type IUnknown (CreateInstance() call).
>
> --
> John Phillips
> MVP - Windows SDK
>
>
>
> "Gold'n'Green" <andy@adsgroup.com> wrote in message
> news:41741253$0$20850$db0fefd9@news.zen.co.uk...
>> Hi,
>>
>> When I execute the following code:
>>
>> IUnknown *pIUnknown = NULL;
>> IClassFactory *pIClassFactory = NULL;
>> HRESULT hr = CoGetClassObject( CLSID_MemberAuth,
>> CLSCTX_INPROC_SERVER,
>> NULL,
>> IID_IClassFactory,
>> (void **)&pIClassFactory );
>> if( SUCCEEDED( hr ) ) {
>> hr = pIClassFactory->CreateInstance( NULL,
>> IID_IMemberAuth,
>> (void **)&pIUnknown );
>> }
>> INSSAuthenticator *pIMemberAuth = NULL;
>> GUID iGuid;
>> hr = pIUnknown->QueryInterface( IID_IMemberAuth,
>> (void **)&pIMemberAuth );
>> if( SUCCEEDED( hr ) ) {
>> // *** Fails on this line ***
>> pIMemberAuth->GetAuthenticatorClass( &iGuid );
>> }
>>
>> On the line indicated I get:
>>
>> "Run-Time Check Failure #0 - The value of ESP was not properly saved
> across
>> a function call. This is usually a result of calling a function declared
>> with one calling convention with a function pointer declared with a
>> different calling convention."
>>
>> I have tried everything I can think of and searched numerous articles. In
>> particular I have set the calling conventions in the project properties
>> correctly.
>>
>> Does anyone have any other ideas?
>>
>> Thanks,
>>
>> Andy.
>>
>>
>
>
- Next message: Deepak Natarajan: "Instantiating Remote Objects through COM"
- Previous message: mhe: "Re: Firing events from ActiveX-control to Javascript in IE"
- In reply to: John Phillips: "Re: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call."
- Next in thread: John Phillips: "Re: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call."
- Reply: John Phillips: "Re: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|