Can't use TComponent in thread object?
- From: "brett" <account@xxxxxxxxx>
- Date: 22 Nov 2006 10:33:07 -0800
I've added a Thread Object named TProgressThread to my Delphi7 Win32
project. I created this method in the unit:
procedure TProgressThread.GetRemoteFile;
begin
FtpClient1 := TFtpClient.Create(Self);
....
end;
I get this error when compiling:
[Error] ProgressThread.pas(72): Incompatible types: 'TComponent' and
'TProgressThread'
Line 72 is the FtpClient1 line above. I'm trying to put the
downloading of a file on its own thread. Why can't I use the
FtpClient1 object in the thread class?
Thanks,
Brett
.
- Follow-Ups:
- Re: Can't use TComponent in thread object?
- From: Jamie
- Re: Can't use TComponent in thread object?
- Prev by Date: Re: I've completed a set of tools written by VCL
- Next by Date: Re: More accurate Timerevent
- Previous by thread: i need help with barcodes
- Next by thread: Re: Can't use TComponent in thread object?
- Index(es):