Re: [twsocket] problem using UDP

2006-10-10 Thread Francois Piette
Ues ReceiveFrom to know who is sending the reply. Maybe it is the sending program itself. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.ov

[twsocket] problem using UDP

2006-10-10 Thread rajan
Dear All, I am using ICS for long time, it is very powerful and useful. First I would thanks to the ICS team. Recenetly I noticed a Weird problem using UDP. I have two application communicating between them using TWSocket through UDP. Both the applications sending and receiving the data each oth

[twsocket] Error 10038 in function Disconnect (closesocket)

2006-10-10 Thread Miguel Ca
Hello it's me again. The question is : It is posible tha this error could be generated by another error, i already check the source code and i see that this exception is generated in the internal close procedure but my question comes because i omit all the close calls in my code and the excep

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread Francois PIETTE
Warning: The root directory is not necessary the directory where you are when you log into the ftp server which is the "home directory". Home directory and root directory may be the same, but not always. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECT

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread [EMAIL PROTECTED]
> So you should first change the working directory > to the "root" path and then try the second CWD > command with the "a\b\c\d" HostDirName ... No, that would require an extre round-trip. As others have pointed out, you should use "absolute" paths by starting all your paths with a '/' (or '\'

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread Marcelo Grossi
Hi, Isn't CWD command supposed to work from the directory you are in? Example: > HostDirName = '1\2\3\'; > Cwd; // No Failure I think this doesn't fail because the directory "1" is placed inside the current working directory. Wich does not happen in the second CWD: > HostDirName = 'a\b\c\d\';

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread Gunnar
Hi, Current dir is "\" > HostDirName = '1\2\3\'; > Cwd; // No Failure of course > HostDirName = 'a\b\c\d\'; > Cwd; // ERROR: 550 a\b\c\d\ : The system cannot find the path specified. Haha, no surprise. The server is now looking for \1\2\3\a\b\c\d, and that porbably doesn't exist. Set hostdir

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread Francois PIETTE
You are using relative paths and so the oerder is very important. If you cwd to 'a\b\c\d\' and then to '1\2\3\' it is the same as doing a cwd to 'a\b\c\d\1\2\3\' at the first place. If you first cwd to '1\2\3\' and then to 'a\b\c\d\', then is is the same to do at once a cwd to '1\2\3\a\b\c\d\'. A

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread Gies,Brad
Send code examples. My guess is that you are in directoy 1\2\3 and then attempting to CWD to a\b\c\d without returning to the parent directory first, so that you are really trying to change to directory 1\2\3\a\b\c\d without realizing it. Sincerely, Brad Gies

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread rick cusimano
Hello, Thanks for pointing out that I can retrieve the last response from the server, I didn't realise Cwd results came just as a response and not as an event. Ok so this is what happens: HostDirName = '1\2\3\'; Cwd; // No Failure HostDirName = 'a\b\c\d\'; Cwd; // ERROR: 550 a\b\c\d\ : The sy

Re: [twsocket] Bug found in THttpCli--seeking solution, please help!

2006-10-10 Thread Fastream Technologies
Hello Francois, Yes this fix does the job. I hope it won't break somewhere else (a problem we live with our code sometimes ;) ). Best Regards, SZ - Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, October 09, 2006 9:35 PM Subject:

Re: [twsocket] How to handle a failed CWD with FTPClient...

2006-10-10 Thread Francois Piette
> I was asked to check what error is bought up but unfortunately the FTPClient > component doesn't generate an error via the OnError event (though it does > for other things so I know I'm checking it right). It is likely an error at the application level, that is sent by the FTP server. PLEASE rec

Re: [twsocket] Memory leaks

2006-10-10 Thread Francois Piette
> > If the stream behaviour is what you need, I don't see any > > problem with that. > > What about memory allocation ? It is better to keep the object created of course. But this doesn't change anything regarding to what the object optimize the memory it may have allocated. Contribute to the SSL