If you’re experiencing unexpected Meeting SDK behavior please search the forum with relevant keywords (e.x. error message) and follow the guidance outlined in those posts. Please also leverage the following support links:
Description
After joining a meeting, a call to GetParticipantsList() returns 0x00000003
According to the documentation and include files its supposed to return an IList or Null. This value is neither a pointer to an object (list) or Null.
The code used to work fine. But the call fails in this version and the several of the preceding ones.
Error?
Because the result is not Null, I call GetCount() on it and obviously get a Read Access Violation.
Troubleshooting Routes
Re-compiled against older versions of the SDK - the code works.
Looked in changelog - nothing!
Googled - nothing!
Posted on this forum - nothing!
How To Reproduce
Use the Zoom Meeting SDK C++ API on Windows!
And tested against it in the function that goes wrong which is now:
IList<unsigned int >* ZoomInterface::GetParticipantsList() {
ZOOM_SDK_NAMESPACE::IList<unsigned int >* result = NULL;
IMeetingService* meetingService = getMeetingService();
if (meetingService && m_lastZoomMeetingStatus == ZOOM_SDK_NAMESPACE::MEETING_STATUS_INMEETING) {
IMeetingParticipantsController* pPaticipantsCtrl = meetingService->GetMeetingParticipantsController();
if (pPaticipantsCtrl) {
result = pPaticipantsCtrl->GetParticipantsList();
}
}
return result;
}
The code fails as before. That is, it obtains a valid meeting service object, the value of the last status passed to me is indeed MEETING_STATUS_INMEETING, it obtains a valid participants controller object, and then the call to GetParticipantsList returns 0x00000003 which is clearly not an IList. A subsequent call to GetCount on this erroneous result crashes the code.
If you can spot an error in my code I would be very grateful. But I should emphasize that this code has been working for a couple of years now, until the most recent releases that is.
to my onMeetingStatusChanged handler and it crashes in exactly the way I described above at the call to GetCount on a value for the participants IList of 0x3!
And again in the spirit of optimism, I just reverted to version 5.12.2.9319 and both of these problematic functions work perfectly with exactly the same code. But with version 5.14.0.13926 they both fail.
Hence why I believe the problem is in the Zoom libraries rather than my code. Although I much prefer being proved wrong, rather than being ignored.
Mike