Using HTTPRIO like Ajax
Posted on 2006-11-02
Res : TMyClass; // TRemotable
HTTPRIO := THTTPRIO.Create(AOwner);
Res := (HTTPRIO as MyWebService).CallSomething;
// Use Res
1. Now when I call DoSomething the execution will not proceed until the DoSomething has finished. However, I wish it should proceed without waiting for DoSomething to finish.
2. Sometime it will also require to wait until DoSomething has finished.
I understand that this can be accomplished by using Threads. Can someone give me some example / working code for this?
My goal is to improve existing performance, can this approach be helpful? is there any risk with this approch?