RTC Forums

Dashboard => Quick Start => Topic started by: D.Tkalcec (RTC) on September 23, 2016, 12:45:10 PM



Title: NEVER use Application.ProcessMessages, ShowMessage or similar from RTC events!
Post by: D.Tkalcec (RTC) 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