# Error in c# wrapper

**URL:** <https://devforum.zoom.us/t/error-in-c-wrapper/39575>\
**Category:** Meeting SDK\
**Created:** [January 3, 2021, 1:00pm UTC](https://devforum.zoom.us/t/error-in-c-wrapper/39575 "2021-01-03T13:00:39Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![bm.erikstad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bm.erikstad/32/3113_2.png) [@bm.erikstad](https://devforum.zoom.us/u/bm.erikstad)\
**Post date:** [January 3, 2021, 1:00pm UTC](https://devforum.zoom.us/t/error-in-c-wrapper/39575/1 "2021-01-03T13:00:39Z")

</div>

EnableOptimizeForFullScreenVideoClip returns SDKERR\_WRONG\_USEAGE with zoom-c-sharp-wrapper-5.4.54524.1229

wrapper v5.2.42037.1112 works as intended.  
What is wrong in the latest release ?

---

<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:** [January 4, 2021, 11:08pm UTC](https://devforum.zoom.us/t/error-in-c-wrapper/39575/2 "2021-01-04T23:08:49Z")

</div>

Hey @bm.erikstad,

Thanks for using the dev forum!

Are you seeing the same issue in the demo app?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![bm.erikstad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bm.erikstad/32/3113_2.png) [@bm.erikstad](https://devforum.zoom.us/u/bm.erikstad)\
**Post date:** [January 24, 2021, 4:47pm UTC](https://devforum.zoom.us/t/error-in-c-wrapper/39575/3 "2021-01-24T16:47:08Z")

</div>

Just made the switch between versions again. Is there a reason why the function EnableOptimizeForFullScreenVideoClip does bot work anymore ?  
Removing this option make share screen work again. But the function thill exist…

---

<div class="post-metadata">

**Author:** ![bm.erikstad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bm.erikstad/32/3113_2.png) [@bm.erikstad](https://devforum.zoom.us/u/bm.erikstad)\
**Post date:** [January 25, 2021, 8:05pm UTC](https://devforum.zoom.us/t/error-in-c-wrapper/39575/4 "2021-01-25T20:05:22Z")

</div>

just tried 5.4.54802.0124. Still the same issue.

Another remark SDKError PinVideo(bool bPin, bool bFirstView, uint userid);  
does not work… (: Returning SDKERR\_INVALID\_PARAMETER.

---

<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:** [January 25, 2021, 9:52pm UTC](https://devforum.zoom.us/t/error-in-c-wrapper/39575/5 "2021-01-25T21:52:48Z")

</div>

Hey @bm.erikstad,

So you are receiving SDKERR\_WRONG\_USEAGE in the c++ version as well? At what point are you calling EnableOptimizeForFullScreenVideoClip?

Thanks!  
Michael

---

<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:** [January 25, 2021, 9:53pm UTC](https://devforum.zoom.us/t/error-in-c-wrapper/39575/6 "2021-01-25T21:53:54Z")

</div>

Hey @bm.erikstad,

> [@bm.erikstad](#):
>
> Another remark SDKError PinVideo(bool bPin, bool bFirstView, uint userid);  
> does not work… (: Returning SDKERR\_INVALID\_PARAMETER.

What are you passing into the method parameters?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![bm.erikstad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bm.erikstad/32/3113_2.png) [@bm.erikstad](https://devforum.zoom.us/u/bm.erikstad)\
**Post date:** [January 26, 2021, 5:20pm UTC](https://devforum.zoom.us/t/error-in-c-wrapper/39575/7 "2021-01-26T17:20:17Z")

</div>

I am passing in what I have always passed…  
err = ZOOM\_SDK\_DOTNET\_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingVideoController().PinVideo(true, true, this.Id);

With sdk version v5.2.42037.1112 it works.

---

<div class="post-metadata">

**Author:** ![bm.erikstad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bm.erikstad/32/3113_2.png) [@bm.erikstad](https://devforum.zoom.us/u/bm.erikstad)\
**Post date:** [January 26, 2021, 5:25pm UTC](https://devforum.zoom.us/t/error-in-c-wrapper/39575/8 "2021-01-26T17:25:05Z")

</div>

I am using sourcetree for my code and have been using sdk from v 4.6, so I have changed several sdk versions over the time…

---

<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:** [January 26, 2021, 5:37pm UTC](https://devforum.zoom.us/t/error-in-c-wrapper/39575/9 "2021-01-26T17:37:08Z")

</div>

Hey @bm.erikstad,

I am sorry you are facing this issue, that must be frustrating that the latest version must have broken this. I will submit a bug report for this to the team.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![bm.erikstad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bm.erikstad/32/3113_2.png) [@bm.erikstad](https://devforum.zoom.us/u/bm.erikstad)\
**Post date:** [January 26, 2021, 6:24pm UTC](https://devforum.zoom.us/t/error-in-c-wrapper/39575/10 "2021-01-26T18:24:32Z")

</div>

It is frustrating. Being two releases behind with so many cool function avalable (Multi Spot /Pin), and they are just not working…  
Thanks. Looking forward to the fix.

---

<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:** [January 26, 2021, 6:42pm UTC](https://devforum.zoom.us/t/error-in-c-wrapper/39575/11 "2021-01-26T18:42:20Z")

</div>

Hey @bm.erikstad,

You are welcome. I apologize for this. Will keep you updated with what I hear.

Thanks!  
Michael

---

<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:** [February 1, 2021, 8:19pm UTC](https://devforum.zoom.us/t/error-in-c-wrapper/39575/12 "2021-02-01T20:19:07Z")

</div>

Hey @bm.erikstad,

The method pinVideo was deprecated in .1229 and the interfaces for multi-pinning were added.

> **[Windows – Zoom Developer Support](https://devsupport.zoom.us/hc/en-us/sections/9481900481805-Windows)**

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![bm.erikstad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bm.erikstad/32/3113_2.png) [@bm.erikstad](https://devforum.zoom.us/u/bm.erikstad)\
**Post date:** [February 4, 2021, 12:15pm UTC](https://devforum.zoom.us/t/error-in-c-wrapper/39575/13 "2021-02-04T12:15:29Z")

</div>

Interestingly enough, the function still exists in the C# wrapper comiled in zoom-c-sharp-wrapper-5.4.54802.0124

So what did I do:

I had to compile the wrapper myselves, because of this issue. Now it works.  
Can not say that I like the fact that Zoom has new files together with an old build, and that the reference’s is so, that the priject will build easy. It need a lot of ‘hand on’ to build.

---

<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:** [February 4, 2021, 7:05pm UTC](https://devforum.zoom.us/t/error-in-c-wrapper/39575/14 "2021-02-04T19:05:42Z")

</div>

Hey @bm.erikstad,

In regards to the EnableOptimizeForVideoClip issue, the method must be called before sharing in the latest versions, can you try calling this before beginning the share?

> [@bm.erikstad](#):
>
> Can not say that I like the fact that Zoom has new files together with an old build, and that the reference’s is so, that the priject will build easy. It need a lot of ‘hand on’ to build.

I understand that this is frustrating. We will work to make the futures releases cleaner and easier to build out of the box.

Thanks!  
Michael
