RTC Forums

Subscription => Support => Topic started by: Rob van Tour on March 20, 2014, 09:16:59 AM



Title: Non blocking
Post by: Rob van Tour on March 20, 2014, 09:16:59 AM
Is there a way to do non blocking calls without using the TRTCResult?
I have a lot of functions and all of those components make the form a bit messy.

When I do blocking calls I use something like this:

    with Form1.RtcClientModule1 do
    begin
      Prepare('function1');
      Param.asstring['PARAM1']:='Test';
      execute;
      //Do something with lastresult
    end;

I would like to use something similar, but then in non blocking mode.
I was thinking about creating the TRTCResults on runtime, but is there a easier way?



Title: Re: Non blocking
Post by: D.Tkalcec (RTC) on March 20, 2014, 12:51:14 PM
The reason for the TRtcResult component requirement, is to have an event attached to the call which will receive the result. If you are only using a single event, then you only need a single TRtcResult component. But there is no way to have non-blocking calls with the TRtcClientModule without using at least one TRtcResult component.

Best Regards,
Danijel Tkalcec