RTC Forums
April 29, 2024, 10:41:34 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Non blocking  (Read 3162 times)
Rob van Tour
RTC License+
****
Posts: 8


« 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?

Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 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
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.021 seconds with 16 queries.