Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: Socket is not connected when I use the retrieve method
daccas
daccas@hotmail.com

From: São Paulo, Brazil
Posts: 3
Member Since: 12/16/05
posted December 16, 2005 9:35 AM

Hello,

I have a VB6 service that was working fine. This only connect to a ftp and retrieves the files from the ftp site. Unexpectly this service stopped and occurred that the files are create with 0kb. I've tried to restart the service and nothing happend, the error continues.

I´ve see the log file and the error is "10057 - Receive or send method failed. The socket is not connected".

I have others services using dart that access the same ftp site and work fine. I'solved this once restating the server, but I cannot do this everytime.

I think there is something about a instance of object locked in memory.

Can you help me.

Thanks in advance,

Alexandre Daccas.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted December 16, 2005 9:50 AM

What has changed on you system since it last worked?
If you feel something is "locked in memory" a reboot would take care of that.
daccas
daccas@hotmail.com

From: São Paulo, Brazil
Posts: 3
Member Since: 12/16/05
posted December 16, 2005 11:35 AM

Hello Tony,

Nothing's change on my server or my application. The one thing I know that's changed it was the ftp site platform on the other side. But I've made a ftp test program using dart FTP on the same server and it worked.

I've tried reboot my system and for a while my application works. after a time it stops working.

What is the latest version of dart Ftp tool?

Can this error happen because of connection timeout? If yes, how can I set this.

Tks in advance

Alexandre Daccas
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted December 16, 2005 12:02 PM

No. The error means that an attempt to send data failed because the connection was closed. Unfortunately I can't tell you why the connection was closed, that is something you would have to debug at your end.

If you are not able to resolve this, please contact support@dart.com to discuss more advanced support options.
daccas
daccas@hotmail.com

From: São Paulo, Brazil
Posts: 3
Member Since: 12/16/05
posted December 19, 2005 6:47 AM

I've found the problem...

It was a file locked on the ftp site. When it tried to retrieve this file, an error was generated and the connection closed automatically, then the others files couldn't be retrieved because the connection was closed.

So I have a final question: When any error occurs on dart ftp tool, why the connection is closed?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted December 19, 2005 8:50 AM

The control connection is not always closed when an error occurs on the data connection. I am not sure why it is being closed in your situation. Maybe the server is closing the connection?

In any event, if you would like us to look into this, please send the exact steps we need to take to duplicate the problem using one of our sample apps.


Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX