RTC Forums

Dashboard => Quick Start => Topic started by: D.Tkalcec (RTC) on January 24, 2010, 11:19:23 AM



Title: Clean RTC Client and Server shutdown
Post by: D.Tkalcec (RTC) on January 24, 2010, 11:19:23 AM
If you are getting exceptions or memory leaks on your application shutdown, or if your client or server are not immediately shutting down when you try to close them, you are most likely not closing your RTC connections properly before closing your application. Here is a short article from the old RTC SDK FAQ (http://www.realthinclient.com/sdkarchive/index99299929.html) which describes what you should do to have a RTC Client and/or Server application perform a clean shut down (usually done from Main form's "OnCloseQuery" event).

Best Regards,
Danijel Tkalcec


Title: Re: Clean RTC Client and Server shutdown
Post by: D.Tkalcec (RTC) on November 27, 2011, 03:51:47 AM
As an alternative, starting with RTC SDK v5.08, you can:

1) use the "DisconnectNow" method on the Client side (TRtcHttpClient and TRtcMessageClient components), which will call "Disconnect" and then wait for the connection to get closed.

2) use the "StopListenNow" method on the Server side (TRtcHttpServer and TRtcMessageServer components), which will call "StopListen" and then wait for the Server to stop listening.

Best Regards,
Danijel Tkalcec