Question
People commonly ask on the Zoom Developer Forum:
Why does my Windows C++ Meeting SDK app crash when calling FreeLibrary on sdk.dll after CleanUPSDK()? I can LoadLibrary, call InitSDK and CleanUPSDK (both return success), but the process throws an exception on FreeLibrary. This is on Windows 10 with Meeting SDK 6.4.0.62547.
Answer
This is typically caused by the SDK not fully shutting down before the DLL is unloaded.
To avoid the crash:
- Prefer linking the SDK via its .lib so Windows handles loading/unloading automatically (instead of manual LoadLibrary/FreeLibrary).
- If you must load the DLL manually: - Release all SDK objects/references (audio, video, renderers, etc.) before calling CleanUPSDK(). - After CleanUPSDK(), add a short delay and/or pump the message loop to give internal SDK threads time to exit.
- Verify you’re on the latest Windows Meeting SDK version, as unload-related crashes are often fixed in newer releases.
Zoom Developer Forum Examples
Some examples of this question are:
