# Hello zoom tech developers~! I have an issue on Windows initialize() , and cleanUp() function

**URL:** <https://devforum.zoom.us/t/hello-zoom-tech-developers-i-have-an-issue-on-windows-initialize-and-cleanup-function/54851>\
**Category:** Windows\
**Created:** [July 28, 2021, 10:00am UTC](https://devforum.zoom.us/t/hello-zoom-tech-developers-i-have-an-issue-on-windows-initialize-and-cleanup-function/54851 "2021-07-28T10:00:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssijcfe](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ssijcfe/32/25564_2.png) [@ssijcfe](https://devforum.zoom.us/u/ssijcfe)\
**Post date:** [July 28, 2021, 10:00am UTC](https://devforum.zoom.us/t/hello-zoom-tech-developers-i-have-an-issue-on-windows-initialize-and-cleanup-function/54851/1 "2021-07-28T10:00:37Z")

</div>

**Description**

1. I initially initialize zoom windows sdk at when program execute and got SDKERR\_SUCCESS which is fine. But now I wanted to try some diff things like using customize UI and default Zoom UI back and forth while program is running. So what i did is initialize() with customUI param and turn off all the meeting and stuff , and use CZOOMCZoomSDKeDotNetWrap.Instance.CleanUp() to reinitialize without customUI ( using default meeting ) .  
CleanUp() return SDKERR\_SUCCESS msg and initialize return SDKERR\_SUCCESS msg and even “SDKError authResult = CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth(authParam);” return success after cleanUp() . ( when very first initialize and run zoom sdk work totally fine . works like charm but after clean up and initialize, some functions SDKERR\_UNINITIALIZE msg return )  
Also when i scan camera or audio it throws Nullpointerexception on " ICameraInfoDotNetWrap GetCameraList();"

However , the sdk initialize returned success and even auth returned success…

Thing is that i wanna know cleanUp() function is only valid when program is shutting down? Am I using wrongly?

Thank you for reading , I hope I make clear explanation ( maybe i didnt sorry )

**Which Windows Client SDK version?**  
Knowing the version can help us to identify your issue faster.  
Latest !!

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [July 28, 2021, 5:37pm UTC](https://devforum.zoom.us/t/hello-zoom-tech-developers-i-have-an-issue-on-windows-initialize-and-cleanup-function/54851/2 "2021-07-28T17:37:59Z")

</div>

Hey @ssijcfe,

Thanks for using the dev forum!

The SDK is designed to be initialized only once in an application instance. That is bizarre it returns success after reinitializing but yes cleanup is intended for application ending events.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![ssijcfe](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ssijcfe/32/25564_2.png) [@ssijcfe](https://devforum.zoom.us/u/ssijcfe)\
**Post date:** [July 29, 2021, 12:25am UTC](https://devforum.zoom.us/t/hello-zoom-tech-developers-i-have-an-issue-on-windows-initialize-and-cleanup-function/54851/3 "2021-07-29T00:25:31Z")

</div>

Thank you so much for u qyick relply lol

I waste so much time yesterday 😀

Now i ha2 dig another solution …

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [August 2, 2021, 10:22pm UTC](https://devforum.zoom.us/t/hello-zoom-tech-developers-i-have-an-issue-on-windows-initialize-and-cleanup-function/54851/4 "2021-08-02T22:22:02Z")

</div>

Hey @ssijcfe,

You are very welcome, please let us know if you have any other questions!

Thanks!  
Michael

---

<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:** [September 2, 2021, 8:22am UTC](https://devforum.zoom.us/t/hello-zoom-tech-developers-i-have-an-issue-on-windows-initialize-and-cleanup-function/54851/5 "2021-09-02T08:22:42Z")

</div>

Closed on September 2, 2021, 8:22am UTC

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