RTC Forums
June 17, 2024, 03:58:08 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
   Home   Help Login Register  
Pages: [1]
Author Topic: NEVER use Application.ProcessMessages, ShowMessage or similar from RTC events!  (Read 8126 times)
D.Tkalcec (RTC)
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
Pages: [1]
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.021 seconds with 16 queries.