Unhandled Exception in XMPP - WeOnlyDo Discussion board

Unhandled Exception in XMPP (General questions)

by gothic_coder, Friday, December 10, 2010, 14:22 (5098 days ago)

Hello,

I was trying to run the program under the directory Samples-VC-Component-ATL, But at one point it was giving me error Unhandled Exception in SimpleIm.exe (WODXMPP.DLL): 0xC0000005: Access Violation , Below is the line where it's giving that error, Please take a look.

[code]
IwodXMPPComPtr pXMPP;
HRESULT hr = NULL;

CoInitialize (NULL);

hr = pXMPP.CreateInstance (CLSID_wodXMPPCom, NULL);
if (FAILED (hr))
{
_com_error comErr (hr);
printf ( Unable to load IwodXMPPCom interface.
Err # u: s , hr, comErr.ErrorMessage () );
CoUninitialize ();
return 99;
}

wodXMPPEvents *pEvents = new wodXMPPEvents(pXMPP);

pXMPP->Blocking = VARIANT_TRUE; // Here it's throwing the exception
[/code]

Looking forward to get some answers.

Thanks all


Complete thread: