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:5 Apr 2006 07:13:15

sham wrote:

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

keep in mind that the FTP protocol uses 2 connections to work: one for
the data, one for the communication of commands between client and
server. Maybe something in one or more of your threads is interfering
with it.

Thread-safety problems lead to often the weirdest problems and errors
you can imagine. That putting a sleep(0) kind of solves it should give
you a lead. What happens just before and after? Which thread is doing
what at that moment?

> I am not using the latest dev snapshot. I am using version 9.0.14.

try with the latest snapshot. You can get it from

http://www.indyproject.org/Sockets/Download/DevSnapshot.en.html


Good luck
--
Best regards :)

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

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive