Can't use TComponent in thread object?
Posted on 2006-11-22
I've added a Thread Object named TProgressThread to my Delphi7 Win32 project. I created this method in the unit:
FtpClient1 := TFtpClient.Create(Self);
I get this error when compiling:
[Error] ProgressThread.pas(72): Incompatible types: 'TComponent' and
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?