Re: [twsocket] Error handling
There camed up a little pop-up saying "Socket error 10052" This camed up when I pulled the network cable off (testing in windows xp professional). Sorry, I had not seen it. I don't think the "little pop-up" is part of ICS. ICS trigger exception and that is what is useful. Could you please correct me if any of these is wrong (trying to find out socket states for log events)? This is OK but error prone because there could be a change in the code in a future version. Also have a look at WSocketErrorDesc(). -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: "daniel cc" To: "ICS support mailing" Sent: Monday, January 31, 2011 8:54 AM Subject: Re: [twsocket] Error handling Sorry Francois, I tought I had it in the previous mail. Here it is, There camed up a little pop-up saying "Socket error 10052" This camed up when I pulled the network cable off (testing in windows xp professional). However, I have just tested again with this and the error is gone but I still would very much like to catch the errors and put them into the log. For that I very much need some samples. procedure TfrmMain.SslWSocketClientBgException(Sender: TObject; E: Exception; var CanClose: Boolean); begin CanClose := True; Display.lines.Add('Connection terminated'); end; Could you please correct me if any of these is wrong (trying to find out socket states for log events)? / const aSocketState: array[TSocketState] of string = ( 'Invalid', 'Opened', 'Bound', 'Connecting', 'Connected', 'Accepting', 'Listening', 'Closed', 'Closing'); / -Original Message- From: Francois PIETTE Sent: Monday, January 31, 2011 9:08 AM To: ICS support mailing Subject: Re: [twsocket] Error handling Daniel, You have not answered my question: What is the exception/error which is generated ? One we know which error/exception is killing you, we'll probably be able to give a better idea. OnBgException handle background exceptions, that is exceptions triggered in the message pump and not handled elsewhere. You can also have exception anywhere you call an ICS method and you catch it with a try/except. But usually there is no such exception unless you've made a programming error or miunderstood some concept. So plese tell us what exception/error you have ! -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: "daniel cc" To: "ICS support mailing" Sent: Monday, January 31, 2011 7:46 AM Subject: Re: [twsocket] Error handling Hello, Thanks for the response. Sorry for delay. Do we have any demos where --> OnBgException is handled? I simply can't find any, in the server or the client demos. I have tryed to set "Can Close" and put the error into the memo with no success. All I need is to avoid the error pop-up and put the error into the memo/log file. If anyone has ever done this, could you please post some example of how it is done or can be done. Thanks -Original Message- From: Francois PIETTE Sent: Thursday, January 27, 2011 10:51 PM To: ICS support mailing Subject: Re: [twsocket] Error handling Can someone please guide me to a demo where the ICS Socket errors are handled? I have checked almost all and each one of them are having some handling but I can’t get the result I need. Example: If I pull the network cable from the client I get socket error pop-up which is something that I wouldn’t like to see. What is the exception/error which is generated ? See OnBgException event. -- francois.pie...@overbyte.be 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 settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- 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 -- 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 -- 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 -- 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] Error handling
HI Francois, Could you please clear me up a bit, procedure -->Where should I use for the right result in order to be able to catch the error into the memo (in which procedure: OnBgException or)? begin if ErrCode = 0 then Display.Lines.Add('Job done') else Display.Lines.Add(SslWSocketClient.WSocketErrorDesc(ErrCode)); end; Thanks -Original Message- From: Francois PIETTE Sent: Monday, January 31, 2011 11:39 AM To: ICS support mailing Subject: Re: [twsocket] Error handling There camed up a little pop-up saying "Socket error 10052" This camed up when I pulled the network cable off (testing in windows xp professional). Sorry, I had not seen it. I don't think the "little pop-up" is part of ICS. ICS trigger exception and that is what is useful. Could you please correct me if any of these is wrong (trying to find out socket states for log events)? This is OK but error prone because there could be a change in the code in a future version. Also have a look at WSocketErrorDesc(). -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: "daniel cc" To: "ICS support mailing" Sent: Monday, January 31, 2011 8:54 AM Subject: Re: [twsocket] Error handling Sorry Francois, I tought I had it in the previous mail. Here it is, There camed up a little pop-up saying "Socket error 10052" This camed up when I pulled the network cable off (testing in windows xp professional). However, I have just tested again with this and the error is gone but I still would very much like to catch the errors and put them into the log. For that I very much need some samples. procedure TfrmMain.SslWSocketClientBgException(Sender: TObject; E: Exception; var CanClose: Boolean); begin CanClose := True; Display.lines.Add('Connection terminated'); end; Could you please correct me if any of these is wrong (trying to find out socket states for log events)? / const aSocketState: array[TSocketState] of string = ( 'Invalid', 'Opened', 'Bound', 'Connecting', 'Connected', 'Accepting', 'Listening', 'Closed', 'Closing'); / -Original Message- From: Francois PIETTE Sent: Monday, January 31, 2011 9:08 AM To: ICS support mailing Subject: Re: [twsocket] Error handling Daniel, You have not answered my question: What is the exception/error which is generated ? One we know which error/exception is killing you, we'll probably be able to give a better idea. OnBgException handle background exceptions, that is exceptions triggered in the message pump and not handled elsewhere. You can also have exception anywhere you call an ICS method and you catch it with a try/except. But usually there is no such exception unless you've made a programming error or miunderstood some concept. So plese tell us what exception/error you have ! -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: "daniel cc" To: "ICS support mailing" Sent: Monday, January 31, 2011 7:46 AM Subject: Re: [twsocket] Error handling Hello, Thanks for the response. Sorry for delay. Do we have any demos where --> OnBgException is handled? I simply can't find any, in the server or the client demos. I have tryed to set "Can Close" and put the error into the memo with no success. All I need is to avoid the error pop-up and put the error into the memo/log file. If anyone has ever done this, could you please post some example of how it is done or can be done. Thanks -Original Message- From: Francois PIETTE Sent: Thursday, January 27, 2011 10:51 PM To: ICS support mailing Subject: Re: [twsocket] Error handling Can someone please guide me to a demo where the ICS Socket errors are handled? I have checked almost all and each one of them are having some handling but I can’t get the result I need. Example: If I pull the network cable from the client I get socket error pop-up which is something that I wouldn’t like to see. What is the exception/error which is generated ? See OnBgException event. -- francois.pie...@overbyte.be 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 settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- 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 -- To unsubscribe or change your settings for TWSocket mailing list please goto h
Re: [twsocket] THttpCli for NTLM
- Original Message - From: "D'Arcy McNally" To: "Arno Garrels" Sent: Monday, January 31, 2011 11:59 AM Subject: RE: [twsocket] THttpCli for NTLM > Arno. > Thanks very much for the prompt response. > I will update to ICSv7 and report back to the mailing list should I > encounter any problems. No, the update from v6 to v7 with Ansi compilers should be no problem, TPopCli got minor interface changes but that's all, AFAIK. Only make sure that the compiler/linker doesn't find and mix v6 with v7 source and .obj files. The installation procedure changed, just read the readme. -- Arno Garrels -- 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
[twsocket] ICS Simple TCP Server
I am running Windows 7-64 bit; Delphi 2007 I compiled and run OverbyteIcsClient7.dpr, ran outside of Delphi. I compiled and run OverbyteIcsSrvTcp.dpr inside of delphi I cannot see where to adjust the port, I will need 5151 I am trying to have a server listen on port 5151 and receive incoming messages and based on the incoming message, process it. Simple. Can you guide me to the correct demo. By-the-way, these seem really sweet, just have to learn how to use. Thank you, * * Thank you, Daniel -- 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] Error handling
Could you please clear me up a bit, If I can... procedure -->Where should I use for the right result in order to be able to catch the error into the memo (in which procedure: OnBgException or)? begin if ErrCode = 0 then Display.Lines.Add('Job done') else Display.Lines.Add(SslWSocketClient.WSocketErrorDesc(ErrCode)); end; I don't know where you have the error. So I can't tell you where to put the code ! The most common error occurs when trying to send something while the client the socket is no more connected. And this exception is not caught by OnBgException. You should try to reproduce the error within the debugger so that you exactly know where the exception occur and there use a try/except block. OnBgException is used when the exception is going up to the message pump. Instead of bing triggered in the message pump context, taht is almost anywhere in an application, OnBgException event is called. -- francois.pie...@overbyte.be 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 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] ICS Simple TCP Server
I am running Windows 7-64 bit; Delphi 2007 I compiled and run OverbyteIcsClient7.dpr, ran outside of Delphi. I compiled and run OverbyteIcsSrvTcp.dpr inside of delphi I cannot see where to adjust the port, I will need 5151 I am trying to have a server listen on port 5151 and receive incoming messages and based on the incoming message, process it. Simple. Can you guide me to the correct demo. In OverbyteIcsSrvTcp, the server code really reside in OverbyteIcsTcpCmd.pas unit in the TTcpDaemon object. That objet expose a port property having a default value of 2120 (Search every occurence of FPort in that unit and you'll understand the code easily). To change the port, you can either change the default value hardcoded in OverbyteIcsTcpCmd.pas unit, or better assign a value to that property from the main code in the FormCreate event handle where an instance of TTcpDaemon is created, for example immediately after the line initialzing the banner property. You coudl get the port from a config file (ini or registry or whatever you like). You could aslo place the port initialisation in WMAppStartup procedure, just before the call to Start. In both cases add a line: FTcpDaemon.Port := '5151'; -- francois.pie...@overbyte.be 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 settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] Install ICS SSL Delphi 2007 Problem NO SSL
Just got a new PC and installed Delphi 2007 trying to install ICS SSL which i already have installed on my 2 other machines working fine. not matter what i do when i build and install the 2007 group it will not install SSL. i have check the package and USE SSL is defined. i compiled it on a different computer and all fine. copied the code back to my new computer and compiled it and ssl will not install Please help. -- 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] Install ICS SSL Delphi 2007 Problem NO SSL
You installed ICS-V5 instead of V7 ? -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: "Marc Hale" To: Sent: Tuesday, February 01, 2011 2:28 AM Subject: [twsocket] Install ICS SSL Delphi 2007 Problem NO SSL Just got a new PC and installed Delphi 2007 trying to install ICS SSL which i already have installed on my 2 other machines working fine. not matter what i do when i build and install the 2007 group it will not install SSL. i have check the package and USE SSL is defined. i compiled it on a different computer and all fine. copied the code back to my new computer and compiled it and ssl will not install Please help. -- 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