Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Mar : Re: FTP in Thread

www.cryer.info
Managed Newsgroup Archive

Re: FTP in Thread

Subject:Re: FTP in Thread
Posted by:"Guillem" (guillemvicens-nospam@clubgreenoasis.com)
Date:3 Apr 2006 03:35:53

sham wrote:

> In fact, putting sleep(0) before the put command also works.
>
> Why ???
>
> "sham" <shamresh@inspirationmatters.com> wrote in message
> news:442d524b$1@newsgroups.borland.com...
> >
> > Hi,
> >
> > I am using Delphi 7 and indy 9.
> >
> > In my thread, if I set a break point on the put command, the file
> > is ftp'd  correctly. When I run the app without the break point, I
> > get a readtimeout  exception : Stack is :
> >
> <snip stack>

sounds to me like a thread-safety problem.

if I understand it right we are speaking about a FTPclient were you
create a thread and from within that thread you do the Put. Right?

Are you using the latest dev snapshot 9.0.50?

--
Best regards :)

Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive