| Prev | Next
Menu: Products - Portfolio - Services - Download - Order - Company

 
Topic #1.1.1.1.
ASync Part II
   Introduction  
   Overview  
   New Classes  
   TwhAsyncAction  
   OnExecute  
   OnInit  
   OnFinish  
   OnDestroy  
   ExecuteDosCmd  
   Status Variables  
   ASync Download  
*

  

Browsing >>OnFinish

This event is called from a thread when an object becomes 'Done.' The TwhAsyncObject stays, but we need to call the Finished method to close and free the output.
procedure TdmAsyncDemo.ThreadFinish(Sender: TObject);
begin
  if assigned(Sender)
  and (Sender is TwhAsyncObject) then
  with TwhAsyncObject(Sender) do begin
    if (data<>nil)
    and (data is TThreadInput) then
      TThreadInput(Data).Finished(ResultString);
    end;
end;

 
Path:  www.href.com to; Services to; Tech Talk Archive to; ASync Part II to; OnFinish

Copyright © 1995-2012 HREF Tools Corp. All Rights Reserved Worldwide.
Running: WebHub-v2.167 compiled with d16_win32 on Microsoft-IIS/7.5,
Local Time: Wed, 23 May 2012 22:45:29.
Session 2092805004, 35 pages sent to CCBot/1.0 (+http://www.commoncrawl.org/bot.html) at 38.107.179.229;
Time to produce this page: 0msec.