Re: TIdFTP, Is thread safe?

Giganews Newsgroups
Subject: Re: TIdFTP, Is thread safe?
Posted by:  Remy Lebeau (TeamB) (
Date: Thu, 21 Apr 2005

"Gerald Benusa" <bbenu…> wrote in message

> I am wondering if this object is thread safe?

Indy components can be used in threads.  Like any other memory, you have to
take care if you are sharing objects across multiple threads.

> I am not using the VCL component, but I am using the
> TIdFTP.Create(nil) method

Doing it that way still uses the component.  You are merely instantiating it
manually rather than allowing the DFM to do it for you.

> I have created a "TFileProcessThread = class(TThread)" class and
> within the execute method I am instantiating a new TIdFTP object.

That is fine.




In response to

TIdFTP, Is thread safe? posted by Gerald Benusa on Thu, 21 Apr 2005