RTC Forums

Subscription => Support => Topic started by: ISIGest on April 27, 2015, 12:54:33 PM



Title: Call a function in a QuickJob
Post by: ISIGest on April 27, 2015, 12:54:33 PM
Can I call a functon in a quickjob execute event?


Title: Re: Call a function in a QuickJob
Post by: D.Tkalcec (RTC) on April 27, 2015, 01:47:59 PM
You can do anything you want in a TRtcQuickJob OnExecute event, as long as your code is thread-safe, because these events will be executed from background threads. If the TRtcQuickJob component is used on the Server and you need to call a remote function on that same Server, you can do it by using the CallFunction or the ExecuteData method on the TRtcFunctionGoup component. The same methods are used by the TRtcServerModule component to execute remote functions received from Clients, as well as from the RTC Scripting Engine when calling remote functions from within RTC Scripts.

Best Regards,
Danijel Tkalcec