Re: [twsocket] UDP Socket Range Error
> This is the same line I have. The problem is that same code is all > over the place in the source. Is there another version of the source > without those debug statements or with conditional compilation > directives? There isn't but you can easily replace OutputDebugString by //OutputDebugString to disable most of those lines. You'll have to add comment to the next lines for multilines outputdebugstring. Or you can globaly disable range checking in your project settings which is even fatser ! -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Johnnie Norsworthy" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, August 02, 2006 6:32 PM Subject: Re: [twsocket] UDP Socket Range Error > On 8/2/06, Francois PIETTE <[EMAIL PROTECTED]> wrote: >> > 008d7c34 +064 REMINDER.EXE OverbyteIcsWndControl 525 +1 >> > TIcsWndControl.Dispose >> >> Can you point the exact source code ? It is likely that your line numbers >> doesn't match my line numbers. Show the offending line and a few before >> and >> after so that we can locate exactly which istruction trigger the range >> error. >> >> In my source code, line 525 is: >>OutputDebugString(PChar('Dispose ' + ClassName + ' ThreadID=' + >> IntToStr(GetCurrentThreadId))); >> >> It is possible that GetCurrentThreadId return an unsigned integer which >> could not fit into an integer required for IntToStr (an integer in the >> range >> 2G to 4G). You may simply remove that line since it is for debugging >> purpose, or fix it like this: > > Thanks for responding.. > > This is the same line I have. The problem is that same code is all > over the place in the source. Is there another version of the source > without those debug statements or with conditional compilation > directives? > > I need the code for the UDP packet sending as bullet-proof as > possible. Would you recommend programming it in something less > powerful than ICS - possibly the standard Delphi sockets? I can't use > Indy as it also cause some obscure error and I don't care to > inconvenience the Indy people anymore. I am running the server here > on on eo fmy machines with ICS code with no problems. > > The machine the error is happening on is a Windows 98SE machine and so > far, it is just that one computer. > > -Johnnie > -- > 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] UDP Socket Range Error
I disabled range checking in the .INC file and rebuilt the package and it appears to be working for now. The conditional compilation for debug code will be welcomed. It seems to be an issue with Windows 98 machines from what I have seen. Thanks guys. -Johnnie Norsworthy -- 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] UDP Socket Range Error
Somebody else requested that the debug messages be conditionally defined so you can probably expect that soon. As for the problem, I think you could just turn off range checking for your project for the time being. Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johnnie Norsworthy Sent: 02 August 2006 17:33 To: ICS support mailing Subject: Re: [twsocket] UDP Socket Range Error On 8/2/06, Francois PIETTE <[EMAIL PROTECTED]> wrote: > > 008d7c34 +064 REMINDER.EXE OverbyteIcsWndControl 525 +1 > > TIcsWndControl.Dispose > > Can you point the exact source code ? It is likely that your line numbers > doesn't match my line numbers. Show the offending line and a few before and > after so that we can locate exactly which istruction trigger the range > error. > > In my source code, line 525 is: >OutputDebugString(PChar('Dispose ' + ClassName + ' ThreadID=' + > IntToStr(GetCurrentThreadId))); > > It is possible that GetCurrentThreadId return an unsigned integer which > could not fit into an integer required for IntToStr (an integer in the range > 2G to 4G). You may simply remove that line since it is for debugging > purpose, or fix it like this: Thanks for responding.. This is the same line I have. The problem is that same code is all over the place in the source. Is there another version of the source without those debug statements or with conditional compilation directives? I need the code for the UDP packet sending as bullet-proof as possible. Would you recommend programming it in something less powerful than ICS - possibly the standard Delphi sockets? I can't use Indy as it also cause some obscure error and I don't care to inconvenience the Indy people anymore. I am running the server here on on eo fmy machines with ICS code with no problems. The machine the error is happening on is a Windows 98SE machine and so far, it is just that one computer. -Johnnie -- 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] UDP Socket Range Error
On 8/2/06, Francois PIETTE <[EMAIL PROTECTED]> wrote: > > 008d7c34 +064 REMINDER.EXE OverbyteIcsWndControl 525 +1 > > TIcsWndControl.Dispose > > Can you point the exact source code ? It is likely that your line numbers > doesn't match my line numbers. Show the offending line and a few before and > after so that we can locate exactly which istruction trigger the range > error. > > In my source code, line 525 is: >OutputDebugString(PChar('Dispose ' + ClassName + ' ThreadID=' + > IntToStr(GetCurrentThreadId))); > > It is possible that GetCurrentThreadId return an unsigned integer which > could not fit into an integer required for IntToStr (an integer in the range > 2G to 4G). You may simply remove that line since it is for debugging > purpose, or fix it like this: Thanks for responding.. This is the same line I have. The problem is that same code is all over the place in the source. Is there another version of the source without those debug statements or with conditional compilation directives? I need the code for the UDP packet sending as bullet-proof as possible. Would you recommend programming it in something less powerful than ICS - possibly the standard Delphi sockets? I can't use Indy as it also cause some obscure error and I don't care to inconvenience the Indy people anymore. I am running the server here on on eo fmy machines with ICS code with no problems. The machine the error is happening on is a Windows 98SE machine and so far, it is just that one computer. -Johnnie -- 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] UDP Socket Range Error
> 008d7c34 +064 REMINDER.EXE OverbyteIcsWndControl 525 +1 > TIcsWndControl.Dispose Can you point the exact source code ? It is likely that your line numbers doesn't match my line numbers. Show the offending line and a few before and after so that we can locate exactly which istruction trigger the range error. In my source code, line 525 is: OutputDebugString(PChar('Dispose ' + ClassName + ' ThreadID=' + IntToStr(GetCurrentThreadId))); It is possible that GetCurrentThreadId return an unsigned integer which could not fit into an integer required for IntToStr (an integer in the range 2G to 4G). You may simply remove that line since it is for debugging purpose, or fix it like this: OutputDebugString(PChar('Dispose ' + ClassName + ' ThreadID=' + IntToStr(Integer(GetCurrentThreadId; -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Johnnie Norsworthy" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, August 02, 2006 4:50 PM Subject: [twsocket] UDP Socket Range Error >I got the following error report at one customer site which appears to > be during the creation of my TDataModule the TWSocket resides on. > > exception class : ERangeError > exception message : Range check error. > > Main ($fff9384b): > 008d7c34 +064 REMINDER.EXE OverbyteIcsWndControl 525 +1 > TIcsWndControl.Dispose > 008d7e62 +022 REMINDER.EXE OverbyteIcsWndControl 550 +3 > TIcsWndControl.Destroy > 008ddb2d +0dd REMINDER.EXE OverbyteIcsWSocket4286 +31 > TCustomWSocket.Destroy > 008e4b8b +053 REMINDER.EXE OverbyteIcsWSocket7904 +11 > TCustomLineWSocket.Destroy > 0047717e +046 REMINDER.EXE Classes > TComponent.DestroyComponents > 00476f83 +047 REMINDER.EXE Classes > TComponent.Destroy > 004781a5 +065 REMINDER.EXE Classes > TDataModule.Destroy > 00404a56 +03e REMINDER.EXE System @ClassCreate > 008e218f +0df REMINDER.EXE OverbyteIcsWSocket6893 +15 > TCustomWSocket.SocketError > 008e1b36 +0ca REMINDER.EXE OverbyteIcsWSocket6523 +34 > TCustomWSocket.InternalClose > 008e19e5 +011 REMINDER.EXE OverbyteIcsWSocket6440 +1 > TCustomWSocket.Close > 008ddaa2 +052 REMINDER.EXE OverbyteIcsWSocket4263 +8 > TCustomWSocket.Destroy > 008e4b8b +053 REMINDER.EXE OverbyteIcsWSocket7904 +11 > TCustomLineWSocket.Destroy > 004703e5 +0ad REMINDER.EXE ClassesCreateComponent > > My component settings are as follows: > > object WSocket: TWSocket >LineMode = False >LineLimit = 65536 >LineEnd = #13#10 >LineEcho = False >LineEdit = False >Addr = 'mydomain.com' <-not the actual one I use >Port = '12007' >Proto = 'udp' >LocalAddr = '0.0.0.0' >LocalPort = '0' >LastError = 0 >MultiThreaded = False >MultiCast = False >MultiCastIpTTL = 1 >ReuseAddr = False >ComponentOptions = [wsoNoReceiveLoop] >ListenBacklog = 5 >ReqVerLow = 1 >ReqVerHigh = 1 >FlushTimeout = 60 >SendFlags = wsSendNormal >LingerOnOff = wsLingerOff >LingerTimeout = 0 >KeepAliveOnOff = wsKeepAliveOff >KeepAliveTime = 0 >KeepAliveInterval = 0 >SocksLevel = '5' >SocksAuthentication = socksNoAuthentication >Left = 60 >Top = 8 > end > > What settings do I need to change? I am using the socket to send udp > packets with some non-crucial logging of my application. > > I've only seen this error once, but my program is being installed all > over right now with this code so I am a bit worried. > > -Johnnie Norsworthy > -- > 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
[twsocket] UDP Socket Range Error
I got the following error report at one customer site which appears to be during the creation of my TDataModule the TWSocket resides on. exception class : ERangeError exception message : Range check error. Main ($fff9384b): 008d7c34 +064 REMINDER.EXE OverbyteIcsWndControl 525 +1 TIcsWndControl.Dispose 008d7e62 +022 REMINDER.EXE OverbyteIcsWndControl 550 +3 TIcsWndControl.Destroy 008ddb2d +0dd REMINDER.EXE OverbyteIcsWSocket4286 +31 TCustomWSocket.Destroy 008e4b8b +053 REMINDER.EXE OverbyteIcsWSocket7904 +11 TCustomLineWSocket.Destroy 0047717e +046 REMINDER.EXE Classes TComponent.DestroyComponents 00476f83 +047 REMINDER.EXE ClassesTComponent.Destroy 004781a5 +065 REMINDER.EXE ClassesTDataModule.Destroy 00404a56 +03e REMINDER.EXE System @ClassCreate 008e218f +0df REMINDER.EXE OverbyteIcsWSocket6893 +15 TCustomWSocket.SocketError 008e1b36 +0ca REMINDER.EXE OverbyteIcsWSocket6523 +34 TCustomWSocket.InternalClose 008e19e5 +011 REMINDER.EXE OverbyteIcsWSocket6440 +1 TCustomWSocket.Close 008ddaa2 +052 REMINDER.EXE OverbyteIcsWSocket4263 +8 TCustomWSocket.Destroy 008e4b8b +053 REMINDER.EXE OverbyteIcsWSocket7904 +11 TCustomLineWSocket.Destroy 004703e5 +0ad REMINDER.EXE ClassesCreateComponent My component settings are as follows: object WSocket: TWSocket LineMode = False LineLimit = 65536 LineEnd = #13#10 LineEcho = False LineEdit = False Addr = 'mydomain.com' <-not the actual one I use Port = '12007' Proto = 'udp' LocalAddr = '0.0.0.0' LocalPort = '0' LastError = 0 MultiThreaded = False MultiCast = False MultiCastIpTTL = 1 ReuseAddr = False ComponentOptions = [wsoNoReceiveLoop] ListenBacklog = 5 ReqVerLow = 1 ReqVerHigh = 1 FlushTimeout = 60 SendFlags = wsSendNormal LingerOnOff = wsLingerOff LingerTimeout = 0 KeepAliveOnOff = wsKeepAliveOff KeepAliveTime = 0 KeepAliveInterval = 0 SocksLevel = '5' SocksAuthentication = socksNoAuthentication Left = 60 Top = 8 end What settings do I need to change? I am using the socket to send udp packets with some non-crucial logging of my application. I've only seen this error once, but my program is being installed all over right now with this code so I am a bit worried. -Johnnie Norsworthy -- 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