Re: [twsocket] About custom messages in V6 ****
Francois PIETTE wrote: So the question is: what is the best highest number to use ? Should they be in the WM_USER or WM_APP range? Borland is already using messages starting from $B000 and $BC00 (See Controls.pas). Both $B000 and $BC00 are in the WM_APP range. BTW: I also found OCM__BASE in AxCtrls.pas, OleCtl.pas and Activex.pas starting at $2000. 0 through WM_USER-1Messages reserved for use by the system. WM_USER through 0x7FFFInteger messages for use by private window classes. WM_APP through 0xBFFFMessages available for use by applications. 0xC000 through 0xString messages for use by applications. Greater than 0xReserved by the system for future use. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Frans van Daalen [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, June 20, 2006 8:38 PM Subject: Re: [twsocket] About custom messages in V6 I do agree. I already use v6 (old beta) but had no problem with the user messages, using the latest beta without your proposal would break my app. - Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, June 20, 2006 8:12 PM Subject: Re: [twsocket] About custom messages in V6 This make me thinking we could define the messages using the highest number first and then going low. This would eliminate most clashes as many applications start from WM_USER and goes up. Easy change to do. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: twsocket@elists.org Sent: Tuesday, June 20, 2006 6:31 PM Subject: [twsocket] About custom messages in V6 Hello, I just 'fixed' a VERY strange V6 component behavior in a multi- threaded server application that drove me nuts over the last hours 8-| V6 worked great, however I simply forgot that messages in the range of WM_USER up to WM_USER + OverbyteIcsWndControl.WH_MAX_MSG are now reserved for use with the TIcsWndHandler(s). So common, custom messages sent to the same thread need to be defined above that range! --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] About custom messages in V6 ****
Reading MSDN about WM_APP and WM_USER, I think WM_USER through 0x7FFF is the correct range to use sin ce those messages are sent to the private hidden window created by TWndControl. The only possible colision is with developper own defined messages which are not allocated dynamically. So we could make TWndControl start form WM_APP - 1 and going down. Another possibility is to use RegisterWindowMessage. This would be slower but a definitive solution. It may also solve the problem we talked not long ago about recreating the messages for another thread. RegisterWindowMessage would always give the same message number with the same string supplyed. We could manage to create the strings from component name or something like that. Just an idea... -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Wednesday, June 21, 2006 9:58 AM Subject: Re: [twsocket] About custom messages in V6 Francois PIETTE wrote: So the question is: what is the best highest number to use ? Should they be in the WM_USER or WM_APP range? Borland is already using messages starting from $B000 and $BC00 (See Controls.pas). Both $B000 and $BC00 are in the WM_APP range. BTW: I also found OCM__BASE in AxCtrls.pas, OleCtl.pas and Activex.pas starting at $2000. 0 through WM_USER-1Messages reserved for use by the system. WM_USER through 0x7FFFInteger messages for use by private window classes. WM_APP through 0xBFFFMessages available for use by applications. 0xC000 through 0xString messages for use by applications. Greater than 0xReserved by the system for future use. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Frans van Daalen [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, June 20, 2006 8:38 PM Subject: Re: [twsocket] About custom messages in V6 I do agree. I already use v6 (old beta) but had no problem with the user messages, using the latest beta without your proposal would break my app. - Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, June 20, 2006 8:12 PM Subject: Re: [twsocket] About custom messages in V6 This make me thinking we could define the messages using the highest number first and then going low. This would eliminate most clashes as many applications start from WM_USER and goes up. Easy change to do. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: twsocket@elists.org Sent: Tuesday, June 20, 2006 6:31 PM Subject: [twsocket] About custom messages in V6 Hello, I just 'fixed' a VERY strange V6 component behavior in a multi- threaded server application that drove me nuts over the last hours 8-| V6 worked great, however I simply forgot that messages in the range of WM_USER up to WM_USER + OverbyteIcsWndControl.WH_MAX_MSG are now reserved for use with the TIcsWndHandler(s). So common, custom messages sent to the same thread need to be defined above that range! --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] 2006 Developer Conference in Northern California
There is currently a call for paper (http://bdn.borland.com/article/33526) for the 2006 Developer Conference. I could submit some abstract about ICS and/or MidWare. Any killing idea ? -- [EMAIL PROTECTED] The author for 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://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] About TWSocket
Error 10053 is frequently caused by security products such as ZoneAlarm or other firewall-likes. It is also possible there is something (software or hardware such as a router) which times out after some minutes of innactivity. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: arnoldo.u.jr [EMAIL PROTECTED] To: twsocket twsocket@elists.org Sent: Wednesday, June 21, 2006 6:44 PM Subject: [twsocket] About TWSocket Hi I´m receiving a erro 10053 on sessionclose event after some minutes of connection. I use TWSocket since 1999 and never saw this situation. The client freeze, don´t respond more and the connection on client not finish and the server close the connection, event sessionclose was called with error = 10053 and socket close. The event onerror was called too, can you help me ? []´s Arnoldo -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] About TWSocket
Hello Arnoldo, Is server and client on same LAN without routers in between ? 10053 is 'software caused connection abort'. Until now I only got this error when there is some transport line (leased line or other interconnection) not correct working (most hardware problems). I also recall Norton firewall things are doing very wrong winsock errors --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, June 21, 2006, 18:44, arnoldo.u.jr wrote: Hi I´m receiving a erro 10053 on sessionclose event after some minutes of connection. I use TWSocket since 1999 and never saw this situation. The client freeze, don´t respond more and the connection on client not finish and the server close the connection, event sessionclose was called with error = 10053 and socket close. The event onerror was called too, can you help me ? []´s Arnoldo -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] About custom messages in V6 ****
Francois PIETTE wrote: So we could make TWndControl start form WM_APP - 1 and going down. Going down is not convincing me, I would prefer a constant start number. 1024 through 32767 is a wide range, I think it's OK to reserve 1000 or 2000 or even more numbers below WM_APP - 1, so that the component can handle 'out of messages errors'. Beside that it's probably the best solution, though I do not know how much slower RegisterWindowMessage would be. There should be also a clear hint in the comments that messages x through y are reserved for use with ICS (for fools like me). Another possibility is to use RegisterWindowMessage. This would be slower but a definitive solution. It may also solve the problem we talked not long ago about recreating the messages for another thread. RegisterWindowMessage would always give the same message number with the same string supplyed. We could manage to create the strings from component name or something like that. Just an idea... -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Wednesday, June 21, 2006 9:58 AM Subject: Re: [twsocket] About custom messages in V6 Francois PIETTE wrote: So the question is: what is the best highest number to use ? Should they be in the WM_USER or WM_APP range? Borland is already using messages starting from $B000 and $BC00 (See Controls.pas). Both $B000 and $BC00 are in the WM_APP range. BTW: I also found OCM__BASE in AxCtrls.pas, OleCtl.pas and Activex.pas starting at $2000. 0 through WM_USER-1Messages reserved for use by the system. WM_USER through 0x7FFFInteger messages for use by private window classes. WM_APP through 0xBFFFMessages available for use by applications. 0xC000 through 0xString messages for use by applications. Greater than 0xReserved by the system for future use. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Frans van Daalen [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, June 20, 2006 8:38 PM Subject: Re: [twsocket] About custom messages in V6 I do agree. I already use v6 (old beta) but had no problem with the user messages, using the latest beta without your proposal would break my app. - Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, June 20, 2006 8:12 PM Subject: Re: [twsocket] About custom messages in V6 This make me thinking we could define the messages using the highest number first and then going low. This would eliminate most clashes as many applications start from WM_USER and goes up. Easy change to do. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: twsocket@elists.org Sent: Tuesday, June 20, 2006 6:31 PM Subject: [twsocket] About custom messages in V6 Hello, I just 'fixed' a VERY strange V6 component behavior in a multi- threaded server application that drove me nuts over the last hours 8-| V6 worked great, however I simply forgot that messages in the range of WM_USER up to WM_USER + OverbyteIcsWndControl.WH_MAX_MSG are now reserved for use with the TIcsWndHandler(s). So common, custom messages sent to the same thread need to be defined above that range! --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] About custom messages in V6 ****
Francois PIETTE wrote: TWndCntrol could also have a property (maybe just public to avoid making it visible in the OI which would confuse most basic users) to select the starting message number, another to select up/down for next message number and finally a last one for the maximum number of messages (actually it is a constant equal to 100) handled by a single window. Great idea! -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Wednesday, June 21, 2006 8:53 PM Subject: Re: [twsocket] About custom messages in V6 Francois PIETTE wrote: So we could make TWndControl start form WM_APP - 1 and going down. Going down is not convincing me, I would prefer a constant start number. 1024 through 32767 is a wide range, I think it's OK to reserve 1000 or 2000 or even more numbers below WM_APP - 1, so that the component can handle 'out of messages errors'. Beside that it's probably the best solution, though I do not know how much slower RegisterWindowMessage would be. There should be also a clear hint in the comments that messages x through y are reserved for use with ICS (for fools like me). Another possibility is to use RegisterWindowMessage. This would be slower but a definitive solution. It may also solve the problem we talked not long ago about recreating the messages for another thread. RegisterWindowMessage would always give the same message number with the same string supplyed. We could manage to create the strings from component name or something like that. Just an idea... -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Wednesday, June 21, 2006 9:58 AM Subject: Re: [twsocket] About custom messages in V6 Francois PIETTE wrote: So the question is: what is the best highest number to use ? Should they be in the WM_USER or WM_APP range? Borland is already using messages starting from $B000 and $BC00 (See Controls.pas). Both $B000 and $BC00 are in the WM_APP range. BTW: I also found OCM__BASE in AxCtrls.pas, OleCtl.pas and Activex.pas starting at $2000. 0 through WM_USER-1Messages reserved for use by the system. WM_USER through 0x7FFFInteger messages for use by private window classes. WM_APP through 0xBFFFMessages available for use by applications. 0xC000 through 0xString messages for use by applications. Greater than 0xReserved by the system for future use. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Frans van Daalen [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, June 20, 2006 8:38 PM Subject: Re: [twsocket] About custom messages in V6 I do agree. I already use v6 (old beta) but had no problem with the user messages, using the latest beta without your proposal would break my app. - Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, June 20, 2006 8:12 PM Subject: Re: [twsocket] About custom messages in V6 This make me thinking we could define the messages using the highest number first and then going low. This would eliminate most clashes as many applications start from WM_USER and goes up. Easy change to do. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: twsocket@elists.org Sent: Tuesday, June 20, 2006 6:31 PM Subject: [twsocket] About custom messages in V6 Hello, I just 'fixed' a VERY strange V6 component behavior in a multi- threaded server application that drove me nuts over the last hours 8-| V6 worked great, however I simply forgot that messages in the range of WM_USER up to WM_USER + OverbyteIcsWndControl.WH_MAX_MSG are now reserved for use with the TIcsWndHandler(s). So common, custom messages sent to the same thread need to be defined above that range! --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] About custom messages in V6 ****
Hello Arno, Just an idea. Wy not making it a startng property ? Then it is evenutally user definable. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, June 21, 2006, 20:53, Arno Garrels wrote: Francois PIETTE wrote: So we could make TWndControl start form WM_APP - 1 and going down. Going down is not convincing me, I would prefer a constant start number. 1024 through 32767 is a wide range, I think it's OK to reserve 1000 or 2000 or even more numbers below WM_APP - 1, so that the component can handle 'out of messages errors'. Beside that it's probably the best solution, though I do not know how much slower RegisterWindowMessage would be. There should be also a clear hint in the comments that messages x through y are reserved for use with ICS (for fools like me). Another possibility is to use RegisterWindowMessage. This would be slower but a definitive solution. It may also solve the problem we talked not long ago about recreating the messages for another thread. RegisterWindowMessage would always give the same message number with the same string supplyed. We could manage to create the strings from component name or something like that. Just an idea... -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Wednesday, June 21, 2006 9:58 AM Subject: Re: [twsocket] About custom messages in V6 Francois PIETTE wrote: So the question is: what is the best highest number to use ? Should they be in the WM_USER or WM_APP range? Borland is already using messages starting from $B000 and $BC00 (See Controls.pas). Both $B000 and $BC00 are in the WM_APP range. BTW: I also found OCM__BASE in AxCtrls.pas, OleCtl.pas and Activex.pas starting at $2000. 0 through WM_USER-1Messages reserved for use by the system. WM_USER through 0x7FFFInteger messages for use by private window classes. WM_APP through 0xBFFFMessages available for use by applications. 0xC000 through 0xString messages for use by applications. Greater than 0xReserved by the system for future use. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Frans van Daalen [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, June 20, 2006 8:38 PM Subject: Re: [twsocket] About custom messages in V6 I do agree. I already use v6 (old beta) but had no problem with the user messages, using the latest beta without your proposal would break my app. - Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, June 20, 2006 8:12 PM Subject: Re: [twsocket] About custom messages in V6 This make me thinking we could define the messages using the highest number first and then going low. This would eliminate most clashes as many applications start from WM_USER and goes up. Easy change to do. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: twsocket@elists.org Sent: Tuesday, June 20, 2006 6:31 PM Subject: [twsocket] About custom messages in V6 Hello, I just 'fixed' a VERY strange V6 component behavior in a multi- threaded server application that drove me nuts over the last hours 8-| V6 worked great, however I simply forgot that messages in the range of WM_USER up to WM_USER + OverbyteIcsWndControl.WH_MAX_MSG are now reserved for use with the TIcsWndHandler(s). So common, custom messages sent to the same thread need to be defined above that range! --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] 2006 Developer Conference in Northern California
Francois PIETTE wrote: There is currently a call for paper (http://bdn.borland.com/article/33526) for the 2006 Developer Conference. I could submit some abstract about ICS and/or MidWare. Any killing idea ? I don't think it's killing, but most developers believe multi-threaded server applications are better done with blocking sockets, time to clear them up. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- [EMAIL PROTECTED] The author for 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://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be