Re: Run-Time Check Failure
Please check your calling convention.
Would it be possible that the plugin interface requires a __stdcall, and
instead you are using __cdecl (which is the default in C/C++) ?
Giovanni
"nandan Mehra" <nandan.mehra@gmail.com> ha scritto nel messaggio
news:7aff43f0-a046-4e7c-af5c-93f4654f212d@p31g2000prf.googlegroups.com...
Hi ,
i m going to make a Skype Pluign .but when i m recieving a chat
message from my friend it is coming in this OnMessageReceived function
(Event ).but when i m trying SkypeMessage->GetBody(); it is giving
this error :
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 went many site to resolve this problem but i cud not get the
solution.
HRESULT CSkypeTestCPPDlg::OnMessageReceived(struct IMessage *
SkypeMessage)
{
_bstr_t bstrBody = "";
DWORD d;
try
{
bstrBody = SkypeMessage->GetBody();//Run-Time Check Failure #0
}
catch(...)
{
d = GetLastError() ;
}
return 0;
}
one of support.microsoft.com site has given this solution i can
understand only the third one .
You receive this error message when the following conditions are true:
? You call a function that does not use the __cdecl modifier.
? The function contains parameters that are larger than 64 kilobytes
(KB).
? You compile your application in the Debug mode and with the /RTCs
compiler option enabled.
if some one know how about this solution plz forword it to me .thx in
advance