RTC Forums
September 17, 2019, 03:19:04 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

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


« 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: 1796


« 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.022 seconds with 16 queries.