RTC Forums
December 03, 2024, 06:21:22 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: NEVER use Application.ProcessMessages, ShowMessage or similar from RTC events!  (Read 9275 times)
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« on: September 23, 2016, 12:45:10 PM »

When working with the RTC SDK (especially when using its default message-driven asynchronous sockets API), you should NEVER use Application.ProcessMessages, ShowMessage, ShowModal (or any other function or method which would allow messages from the OS to be processed while waiting) from any event triggered by RTC components.

If you ignore this rule, you are likely to end up with Access Violations and other kinds of Exceptions raised after your event returns back to the component, or while waiting and trying to use the component from inside the event, because RTC components are being dinamically created and destroyed based on messages received from the OS.

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 17 queries.