[twsocket] [QUESTION] THttpCli and SocketError

2006-02-17 Thread Guillaume MAISON
Hi all, is there a way when, on ThttpCli.OnSocketError is triggered, to know what was the error ? i mean is it an error from TCP/IP stack, a system error (like no handle, etc...) Thanks, Regards, -- Guillaume MAISON - [EMAIL PROTECTED] 83, Cours Victor Hugo 47000 AGEN Tél : 05 53 87 91 48 -

Re: [twsocket] [QUESTION] THttpCli and SocketError

2006-02-17 Thread Dod
Hello Guillaume, inttostr(WSocketServer.LastError)+' '+WSocketErrorDesc(WSocketServer.LastError) should work. GM> Hi all, GM> is there a way when, on ThttpCli.OnSocketError is triggered, to know what was the error ? GM> i mean is it an error from TCP/IP stack, a system error (like no handle,

Re: [twsocket] [QUESTION] THttpCli and SocketError

2006-02-17 Thread Dod
Hello Guillaume, of course change the "WSocketServer" I used (I just did a copy/paste from one of my code). GM> Hi all, GM> is there a way when, on ThttpCli.OnSocketError is triggered, to know what was the error ? GM> i mean is it an error from TCP/IP stack, a system error (like no handle, etc

Re: [twsocket] [QUESTION] THttpCli and SocketError

2006-02-17 Thread Guillaume MAISON
Dod a écrit : > Hello Guillaume, > > of course change the "WSocketServer" I used (I just did a copy/paste > from one of my code). > Thanks ! i'll check it when i test my application :) regards, -- Guillaume MAISON - [EMAIL PROTECTED] 83, Cours Victor Hugo 47000 AGEN Tél : 05 53 87 91 48 - F

Re: [twsocket] [QUESTION] THttpCli and SocketError

2006-02-17 Thread Wilfried Mestdagh
Hello Guillaume, I was just looking at it but see notes below. HttpCli.CtrlSocket.LastError; But THttpCli assigns an event handler to FCtrlSocket.OnError. So if nobody assign something to OnSocketError then the error is lost. TWSocket will not raise an exception if something is assigned to OnErr

[twsocket] UDPServer receive and IP

2006-02-17 Thread George
Hello, I have a UDPServer component and on DataAvailable SrcLen := SizeOf(Src); Len:= UDPServer.ReceiveFrom(@Buffer, SizeOf(Buffer), Src, SrcLen); ShowMessage(inet_ntoa(Src.sin_addr)); // i know the IP address of the remote pc but since my computer contains 5 ip addresses in the interfa

Re: [twsocket] UDPServer receive and IP

2006-02-17 Thread Francois Piette
Try with GetXAddr method. -- 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.overbyte.be - Original Message - From: "George" <[EM

[twsocket] Bcc list - multiple users - problem with bad email adress

2006-02-17 Thread WP
Hello! I am from Poland. This is my problem. Let's say that I send email to 100 people. They are in BCC list. For example: [EMAIL PROTECTED]; [EMAIL PROTECTED]; .. [EMAIL PROTECTED]; Mail is sending. But, suddenly I have an error message, that some emaill adresses are incorrect or doesn't exist

[twsocket] Problem with Thread(At/De)tach

2006-02-17 Thread Fastream Technologies
Hello, I know I have brought this problem to your attention before but it persists and I think I have a clue. The problem has been: - MT - NOFORMS - Worker thread of http server clients is different than http server itself Now the clue is I recognized that there is window allocation/deallocatio

Re: [twsocket] Bcc list - multiple users - problem with bad email adress

2006-02-17 Thread Arno Garrels
Hi, There's an event OnRcptError that you can use to handle the situation, not sure if it is in current release or latest beta. procedure TForm1.SmtpClientRcptToError(Sender: TObject; ErrorCode: Word; RcptNameIdx: Integer; var Action: TSmtpRcptToErrorAction); begin end; Arno Garrel

[twsocket] TWsocket in Threads and ShellExecute

2006-02-17 Thread asvetov
Hello all! Does somebody have this problem: if twsocket is created in thread and the thread goes to suspend mode, than if you try to call i.e. explorer thru shellexecute, the whole applications hangs some minutes. I assume it has something todo with Window Handle Allocation in TWSocket, but not

Re: [twsocket] Problem with Thread(At/De)tach

2006-02-17 Thread Francois PIETTE
You should create the smalest possible test program which reproduce the problem, preferably using Delphi. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Fastream Technologies" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Friday, February 17, 2006 6:21 PM

Re: [twsocket] TWsocket in Threads and ShellExecute

2006-02-17 Thread Wilfried Mestdagh
Hello asvetov, This is normal behaviour in windows. If you create a (hidden) window in a thread you must pump messages or your system can deadlock. If you suspend a thread having a window then it cannot pump, so that is what you experiance. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/

Re: [twsocket] TWsocket in Threads and ShellExecute

2006-02-17 Thread asvetov
Hello, Wilfried! Thank you for clarifying this. Do you have any recommendations how to avoid this behaviour? I think many people works with different ICS components in threads and reuse threads (doing suspend/resume) and all they have this problem? Or I▓ am the only one who haven▓t solved this

[twsocket] Status of ICS Version 6 and Delphi 2006?

2006-02-17 Thread Hoby Smith
Hello... What is the current status of the ICS V6 Beta? Is it currently considered usable? If not, any idea before it will be production ready? Or, is it possible to use a previous version of ICS in Delphi 2006? I am considering moving to Delphi 2006, but my next BIG project will be heavily