# joinSession Event callbacks are not fired

**URL:** <https://devforum.zoom.us/t/joinsession-event-callbacks-are-not-fired/43426>\
**Category:** Windows\
**Created:** [February 16, 2021, 5:28am UTC](https://devforum.zoom.us/t/joinsession-event-callbacks-are-not-fired/43426 "2021-02-16T05:28:14Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![mtaha](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mtaha/32/17373_2.png) [@mtaha](https://devforum.zoom.us/u/mtaha)\
**Post date:** [February 24, 2021, 4:34am UTC](https://devforum.zoom.us/t/joinsession-event-callbacks-are-not-fired/43426/11 "2021-02-24T04:34:03Z")

</div>

The console application need a **Message Loop** so that messages can be delivered to the correct procedure. The application needs a loop to retrieve the messages and dispatch them to the correct windows.

So I have implement this Message Loop in my console application and my console application is also working now.

Use below message loop in main function of Console Application to make it work:  
bool bRet = false;  
MSG msg;  
while ((bRet = GetMessage(&msg, nullptr, 0, 0)) != 0)  
{  
if (bRet == -1)  
{  
// handle the error and possibly exit  
}  
else  
{  
TranslateMessage(&msg);  
DispatchMessage(&msg);  
}  
}

---

_[View the full topic](https://devforum.zoom.us/t/joinsession-event-callbacks-are-not-fired/43426)._
