| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: Error handling and recovering when "established connection failed" error appears |
| anshulc anshulc@britanniainc.com From: Fort Wayne, IN USA Posts: 9 Member Since: 11/27/02 |
posted November 27, 2002 4:11 PM I have a multithreaded application. Each thread opens a new FTP connection using FTP lib from Dart. The FTP control are created with this call for(int i = 0; i < UPLOAD_THREAD_COUNT; i++) { this.ftpUpload[i]= new Dart.PowerTCP.Ftp.Ftp(); } The problem is coming when I get exception while sending a file and there is a failed connection with message "established connection failed...." The thread (having the FTP control) can thereafter never make a succesful connection. All the further connection attempt fail on that particular thread. Is there any way if we can get the FTP control to reach its initial state? I tried calling .Close() method which generated yet another exception. Do I need to kill that instance of object (in C# ???) and create another instance of FTP control? Thanks for your help. Anshul |
| anshulc anshulc@britanniainc.com From: Fort Wayne, IN USA Posts: 9 Member Since: 11/27/02 |
posted November 27, 2002 4:16 PM To add further. The progam works perfectly for initial hours (6-7 hours) and then suddenly one of the controls starts misbehaving. Thanks, Anshul |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted December 2, 2002 3:11 PM Hi Anshul, Does calling Dispose work? Thanks, -ken |
| anshulc anshulc@britanniainc.com From: Fort Wayne, IN USA Posts: 9 Member Since: 11/27/02 |
posted December 12, 2002 4:40 PM Thanks for reply Drake, I got around by making control = null and replacing it with a new one. This particular solution works. Thanks, Anshul |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|