First of all… I´m really new on Zoom´s universe, so forgive me if my doubt seems foolish…
I was following the Getting Started tutorial to make a simple console application. But, just as I´ve started I began to have issues… Well… I´ve created those callbacks, and it seems to work well, but as my application continues to run it throws an exception that I’ve been struggling with. It seems that an object is out of context, but I don´t know why… Can anyone help me on this issue?
I’m not seeing any issues with the fields you’re setting on sessionContext, but the error you’re seeing is unlikely to be related to these values in particular. Can you provide some additional context around how you’re using the SDK in your project, including how sessionContext is being defined, where you’re setting the IZoomVideoSDKDelegate, calling joinSession, etc.?
As I´ve invetigated until here… The error is really happening inside my listener. Actually it is happening in the callback onUserVideoStatusChanged in the commented statement in the following code:
void MyListeners::onUserVideoStatusChanged(IZoomVideoSDKVideoHelper* pVideoHelper, IVideoSDKVector<IZoomVideoSDKUser*>* userList)
{
CString strInfo;
IZoomVideoSDKUser* pUser;
int count = userList->GetCount();
for (int i = 0; i < count; i++)
{
pUser = userList->GetItem(i);
//strInfo.Format(_T("A user's video status changed: userid=%s, name=%s, status=%s"), pUser->getUserName(), pUser->getVideoStatus());
}
}
I still don´t know why this code line is crashing my app… But I´m really close to find out.
This code was actually copied from the getting started tutorial, so I hope this can help someone in future.