Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Mar : Cast thread error or terminate thread can free resource
| Subject: | Cast thread error or terminate thread can free resource |
| Posted by: | "Jackie Chang" (..@mail.com.tw) |
| Date: | Sat, 15 Mar 2008 23:49:11 |
{ TMyThread }
procedure TMyThread.Execute;
var
StrList: TStringList;
begin
StrList:= TStringList.Create;
try
while (1=1) do
sleep(1000); {I need cast error from Main From! }
finally
StrList.Free;
end;
end;
Cast thread error from Main From! It's possible?
Or terminate thread can run finally section? How?
Thx!