Re: [twsocket] Closing connection in OnDataAvailable retriggers event

2007-12-12 Thread Wilfried Mestdagh
Hello dz, You can use CloseDelayed. And the safe thing in OnDataAvailable is like this: Count := Receive(Buffer, BytesFree); if Count <= 0 then Exit; // hier you go on doing the rest of the stuff So if Receive returns -1 or 0 (error or closed) nothing happens. There is one thing. If you use l

Re: [twsocket] pop3 component not ready - Bug in TPop3Cli

2007-12-12 Thread Arno Garrels
[EMAIL PROTECTED] wrote: > thanks arno and dz-jay, i hope that'll fix it. It helps alot to post a short message when you either think the problem is resolved or not. Thanks. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > i also hope that the bug gets eliminated

[twsocket] Closing connection in OnDataAvailable retriggers event

2007-12-12 Thread [EMAIL PROTECTED]
Hello: I'm performing various requests depending on input received in the TWSocket.OnDataAvailable event (using LineMode=True). If an invalid string is received, I need to close the connection. However, calling WSocket.Close() from within the event will cause OnDataAvailable to trigger again.

Re: [twsocket] pop3 component not ready - Bug in TPop3Cli

2007-12-12 Thread retnyg
thanks arno and dz-jay, i hope that'll fix it. i also hope that the bug gets eliminated in the next release by FPIETTE. i don't really like using custom-patched components. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/lis

Re: [twsocket] ICS V6 and C++Builder 2006 compile

2007-12-12 Thread Arno Garrels
Albert Wiersch wrote: > I compiled ICS V6 for C++Builder 2006 and it seemed to go very > smoothly. I thought it went too easy! > > But when I went to compile my application, I now get this: > > [C++ Error] cse.cpp(111): E2015 Ambiguity between '_fastcall > Application()' and 'Forms::Application'

[twsocket] FTP link checking with FTP client

2007-12-12 Thread Albert Wiersch
Is there anyone here who knows how to implement FTP link checking with ICS? I could probably figure it out but it would be much faster if someone familiar with the ICS FTP client could assist me. I'd be happy to return the favor if you'd like a free license of my application (CSE HTML Validator Pro

Re: [twsocket] Why is ICS v6 still BETA?

2007-12-12 Thread Francois PIETTE
> the latest v5 is from 1st of mai 2006... Mostly because I'm somewhat lazy. And also very busy. -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- To unsubscribe or change your setti

Re: [twsocket] ICS V6 and C++Builder 2006 compile

2007-12-12 Thread Albert Wiersch
Well, I don't know why it was necessary but I added "Forms::" and V6 seems to be working now. I assume that V6 is at least as stable as V5 even though it is still "beta"? Thanks. -- Albert Wiersch AI Internet Solutions [EMAIL PROTECTED] http://www.htmlvalidator.com/ > -Original Message---

[twsocket] ICS V6 and C++Builder 2006 compile

2007-12-12 Thread Albert Wiersch
I compiled ICS V6 for C++Builder 2006 and it seemed to go very smoothly. I thought it went too easy! But when I went to compile my application, I now get this: [C++ Error] cse.cpp(111): E2015 Ambiguity between '_fastcall Application()' and 'Forms::Application' Full parser context cse.cpp(8

[twsocket] Why is ICS v6 still BETA?

2007-12-12 Thread Peter Ineichen, Triple-M Systems AG
Hi the latest v5 is from 1st of mai 2006... btw: most of your "Powered By ICS" links doesn't work... -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Re: [twsocket] pop3 component not ready - Bug in TPop3Cli

2007-12-12 Thread Arno Garrels
[EMAIL PROTECTED] wrote: > as you see, the pop component is not connected when i do the connect > cmd. that's the strange thing, the connection is closed but the > component is not in a ready state. Sorry, now I recall that there is a BUG in the component since a long time!! I fighted for getting

Re: [twsocket] pop3 component not ready

2007-12-12 Thread [EMAIL PROTECTED]
Hello: If I understand correctly, you send the Quit() command after a failure and then try CheckNewMail() again? You must wait for the Quit() command to complete, it will trigger OnRequestDone with an error code. You should try something like this instead: (Mind you, this is out of the top of

Re: [twsocket] pop3 component not ready

2007-12-12 Thread retnyg
procedure TMailAlert.CheckNewMail; begin with FPop do if not Connected then begin Fbusy := true; ClearErrorMessage; Connect; end; end; as you see, the pop component is not connected when i do the connect cmd. that's the strange thing, the connection is closed but the com

Re: [twsocket] pop3 component not ready

2007-12-12 Thread Dod
When doing POP3 you must send a QUIT command to server or all email marked for deletion (DELE command) will not be deleted. >> whats the proper command to close the connection dcn> gracefully ? dcn> The command is "Quit". On a pinch, you could use dcn> "Abort", which will close the socket connec

Re: [twsocket] pop3 component not ready

2007-12-12 Thread [EMAIL PROTECTED]
> whats the proper command to close the connection gracefully ? The command is "Quit". On a pinch, you could use "Abort", which will close the socket connection abruptly if it is opened, but "Quit" will send the "QUIT" POP3 command to the server and wait for it to close the connection. -dZ.

Re: [twsocket] pop3 component not ready

2007-12-12 Thread retnyg
whats the proper command to close the connection gracefully ? AG> [EMAIL PROTECTED] wrote: >> procedure TMailAlert.Pop3ClientRequestDone; >> begin >> if (FPop.connected) and (CheckError) then begin >> FPop.quit; >> exit; >> end; >> >> ... >> >> what could be the cause that the compon