# ZoomSDKError 4 on UI functions

**URL:** <https://devforum.zoom.us/t/zoomsdkerror-4-on-ui-functions/38576>\
**Category:** macOS\
**Created:** [December 16, 2020, 7:37pm UTC](https://devforum.zoom.us/t/zoomsdkerror-4-on-ui-functions/38576 "2020-12-16T19:37:46Z")\
**Posts on this page:** 1\
**Showing post:** 36

<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 21, 2021, 1:43am UTC](https://devforum.zoom.us/t/zoomsdkerror-4-on-ui-functions/38576/36 "2021-01-21T01:43:38Z")

</div>

Hey @j_a_z_z,

So, an instance of `ZoomSDKMeetingService` will be created after the SDK has been authed/initialized. When the `ZoomSDKMeetingService` is created, it will also create the instances of `ZoomSDKMeetingUIController` and `ZoomSDKMeetingActionController`. These instances will stay around for the duration of the `ZoomSDKMeetingService`.

However, an instance of `ZoomSDKASController` is not created until the user has been admitted into a meeting. From there the `ZoomSDKASController` will stay around for the duration of the `ZoomSDKMeetingService`. So  
`[[[ZoomSDK sharedSDK] getMeetingService] getASController]` will return nil until the user has entered a meeting.

> [@j\_a\_z\_z](#):
>
> Should I set the delegate every time I start a meeting?

Yes for the ZoomSDKASController delegate. Only because `ZoomSDKASController` will be nil until the user has joined into a meeting. If the user is going to be joining multiple meetings throughout the app’s lifecycle, you could keep resetting the delegate every time the user joins. However, the instance of `ZoomSDKASController` remains constant after the first meeting.

Thanks!  
Michael

---

_[View the full topic](https://devforum.zoom.us/t/zoomsdkerror-4-on-ui-functions/38576)._
