[twsocket] Error Socket operation on non-socket
From time to time in my program I encounter strange error on connecting. Here's a piece of socket log: 2010-04-16 10:55:50SocketChangeState, wsClosed - wsOpened 2010-04-16 10:55:50TWSocket will connect to 200.255.94.90:2101 2010-04-16 10:55:50SocketChangeState, wsOpened - wsConnecting 2010-04-16 10:55:50SocketChangeState, wsConnecting - wsConnected 2010-04-16 10:55:50SocketSessionConnected, Socket operation on non-socket (#10038) 2010-04-16 10:55:5000D41210 TCustomWSocket.Shutdown 1 1472 Any ideas why it could happen? -- Anton -- 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] Error Socket operation on non-socket
*something wrong with my previous mail, retrying...* From time to time in my program I encounter strange error on connecting. Here's a piece of socket log: 2010-04-16 10:55:50SocketChangeState, wsClosed - wsOpened 2010-04-16 10:55:50TWSocket will connect to 200.255.94.90:2101 2010-04-16 10:55:50SocketChangeState, wsOpened - wsConnecting 2010-04-16 10:55:50SocketChangeState, wsConnecting - wsConnected 2010-04-16 10:55:50SocketSessionConnected, Socket operation on non-socket (#10038) 2010-04-16 10:55:5000D41210 TCustomWSocket.Shutdown 1 1472 Any ideas why it could happen? -- Anton -- 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] Error Socket operation on non-socket
*something wrong with my previous mail, retrying...* From time to time in my program I encounter strange error on connecting. Here's a piece of socket log: 2010-04-16 10:55:50 SocketChangeState, wsClosed - wsOpened 2010-04-16 10:55:50 TWSocket will connect to 200.255.94.90:2101 2010-04-16 10:55:50 SocketChangeState, wsOpened - wsConnecting 2010-04-16 10:55:50 SocketChangeState, wsConnecting - wsConnected 2010-04-16 10:55:50 SocketSessionConnected, Socket operation on non-socket (#10038) 2010-04-16 10:55:50 00D41210 TCustomWSocket.Shutdown 1 1472 Any ideas why it could happen? -- Anton -- 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 Socket operation on non-socket
Hello: It seems like the connection was dropped unexpectedly by the other side. Socket operation on non-socket means that a WinSock call was sent on a closed socket or invalid handle. dZ. On Apr 16, 2010, at 03:48, Anton Sviridov wrote: *something wrong with my previous mail, retrying...* From time to time in my program I encounter strange error on connecting. Here's a piece of socket log: 2010-04-16 10:55:50 SocketChangeState, wsClosed - wsOpened 2010-04-16 10:55:50 TWSocket will connect to 200.255.94.90:2101 2010-04-16 10:55:50 SocketChangeState, wsOpened - wsConnecting 2010-04-16 10:55:50 SocketChangeState, wsConnecting - wsConnected 2010-04-16 10:55:50 SocketSessionConnected, Socket operation on non-socket (#10038) 2010-04-16 10:55:50 00D41210 TCustomWSocket.Shutdown 1 1472 Any ideas why it could happen? -- Anton -- 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] Multiple FTP Clients
Hi Graham, Yes TFileStream will use disk. If you have only small transfers you can do as you do now. If you worry about speed then you could gain speed a lot by using pointers to your own memory location instead of TStream. -- mvg, Wilfried http://www.mestdagh.biz -Oorspronkelijk bericht- Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens GRAHAM (Deephaven) Verzonden: vrijdag 16 april 2010 8:30 Aan: 'ICS support mailing' Onderwerp: Re: [twsocket] Multiple FTP Clients Doesn't TFileStream imply that the data will be transferred to the disk. I want to avoid any disk activity and get the data as fast as possible into the application. The size of any data transfer will only be a few tens of kilobytes at most. Graham -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Francois PIETTE Sent: 16 April 2010 05:56 To: ICS support mailing Subject: Re: [twsocket] Multiple FTP Clients easier to use the multiple FTP clients to solve my problem. The first attempt seems to have a problem (problem something stupid I'm doing). I have 2 FTP clients and created 2 memory streams. If both FTP clients connect and then disconnect, when I free the second memory stream I get an error. If only one FTP client connects and disconnects, I can free both memory streams. Obviously doing something dim. There is a bug in your code obviously. You are probably referencing the wrong stream. btw: Usually one use TFileStream for FTP because you have potentially very large files which could result in out of memory errors if you use a TMemoryStream. -- 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
Re: [twsocket] Error Socket operation on non-socket
Anton Sviridov wrote: wilfried, dZ, the strangest thing is that socket is created and connected directly before the bug. Here is what happens next: Can you tell what is being called exactly at the moment the error occurs? Try adding the ICS source directory to your Library Path and setting up a break point when you open the connection to the socket. Then step through the execution to find out which operation is causing the error and why. Also, perhaps posting the Call Stack may help, though it will only reflect the point when the error was trapped. dZ. -- 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