Re: TIdFTP, Is thread safe?

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

"Gerald Benusa" <bbenu…@tibsite.com> wrote in message
news:4D3C2B8AF2C7E240bbenu…@tibsite.com...

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

Gambit

Replies

None

In response to

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