| 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 >>OnDestroy

The worker object is about to be destroyed, so free the data object.
procedure TdmAsyncDemo.ThreadDestroy(Sender: TObject);
begin
  if assigned(Sender)
  and (Sender is TwhAsyncObject) then
  with TwhAsyncObject(Sender) do begin
    Data.Free;
    Data:=nil;
    end;
end;

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

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:46:45.
Session 452429792, 48 pages sent to CCBot/1.0 (+http://www.commoncrawl.org/bot.html) at 38.107.179.227;
Time to produce this page: 0msec.