RTC Forums
December 06, 2024, 07:50:05 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Clean RTC Client and Server shutdown  (Read 19981 times)
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« 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 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
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.023 seconds with 16 queries.