# DLL gets Load Module Error when attempting to initialize

**URL:** <https://devforum.zoom.us/t/dll-gets-load-module-error-when-attempting-to-initialize/100809>\
**Category:** Windows\
**Tags:** video-sdk\
**Created:** [December 27, 2023, 9:00am UTC](https://devforum.zoom.us/t/dll-gets-load-module-error-when-attempting-to-initialize/100809 "2023-12-27T09:00:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriel2](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@gabriel2](https://devforum.zoom.us/u/gabriel2)\
**Post date:** [December 27, 2023, 9:00am UTC](https://devforum.zoom.us/t/dll-gets-load-module-error-when-attempting-to-initialize/100809/1 "2023-12-27T09:00:52Z")

</div>

**Description**  
I am building a dll that includes the Zoom Video SDK.  
I am following the directions here: [Video SDK - Windows - Integrate](https://developers.zoom.us/docs/video-sdk/windows/integrate/)

**Which Windows Video SDK version?**  
v1.10.0

**To Reproduce(If applicable)**  
m\_pVideoSDK = CreateZoomVideoSDKObj(); // works  
int returnVal = m\_pVideoSDK-\>initialize(initParams); // fails

The returned value is ‘ZoomVideoSDKErrors\_Load\_Module\_Error’ (defined in zoom\_video\_sdk\_def.h)

**Troubleshooting Routes**  
Every file in the build directory and every file in /bin and /lib from the sdk has been copied into the same folder as my dll. (This includes not just .dll and .lib files, but also zCrashReport64.exe, etc.)  
The demo app does build & run, so I have tried copying in all of the files adjacent to the built exe, just in case something was missing.  
Used [DependenciesGUI](https://lucasg.github.io/Dependencies/) to confirm that all declared direct and indirect dependencies of the dll were found.

**Device (please complete the following information):**

- Device: MSI GS63 Stealth
- OS: Windows 10

---

<div class="post-metadata">

**Author:** ![gabriel2](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@gabriel2](https://devforum.zoom.us/u/gabriel2)\
**Post date:** [December 28, 2023, 2:16am UTC](https://devforum.zoom.us/t/dll-gets-load-module-error-when-attempting-to-initialize/100809/2 "2023-12-28T02:16:01Z")

</div>

Further testing:  
(1) Built a simple console app and copied my dll, and all of its dependencies.  
(2) Execution of the console app succeeded!  
My guess is that the IDE that is using my dll (and all of its dependencies) is not being diligent about how it packages everything…

---

<div class="post-metadata">

**Author:** ![gabriel2](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@gabriel2](https://devforum.zoom.us/u/gabriel2)\
**Post date:** [December 28, 2023, 2:56am UTC](https://devforum.zoom.us/t/dll-gets-load-module-error-when-attempting-to-initialize/100809/3 "2023-12-28T02:56:52Z")

</div>

SOLVED: Flushed out all of the old files & reimported… now it works.  
IDE must have been “stuck in a bad state” where the compile & run for testing was not actually copying everything that it should!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 27, 2024, 12:57pm UTC](https://devforum.zoom.us/t/dll-gets-load-module-error-when-attempting-to-initialize/100809/4 "2024-01-27T12:57:46Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
