No Client Session for the current thread

Hi guys,

I am trying to call a Server from within a thread which I created in the Client. Thread runs fine but as soon as it encounters the function call to server, the app stops with the following error:

“No Client Session for the current thread.”

Any Suggestions ?

Hi,

For any threads you explicitly create, you have to call the ConnectService() function for your service from that thread, before you can use any of the other functions. For the main thread, this function is normally called for you, assuming you do not choose manual-start. Note that ConnectService() will have the same prefix as all the other functions in your service.

– Zeljko

Hi,

Thanks for the reply. That solved my problem :slight_smile:

Karandeep.