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:"sham" (shamre..@inspirationmatters.com)
Date:Tue, 4 Apr 2006 13:36:54

Yes, I am creating a thread and doing the put inside it.

I have moved up the sleep to 50.

I am not using the latest dev snapshot. I am using version 9.0.14.
"Guillem" <guillemvicens-nospam@clubgreenoasis.com> wrote in message
news:xn0ekjg5d6h6os001@newsgroups.borland.com...
> 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
> --
> In order to contact me remove the -nospam

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive