: [twsocket] TWsocket and EStackOverflow
On 22-10-2012 19:04, LeNif wrote:
> My problem is when I disconnect the socket and I immediately
> reconnects, I get an error EStackOverflow
And if the reconnect is not "immediately" (you wait more time), the error
does not occur?
Have you c
On 22-10-2012 19:04, LeNif wrote:
My problem is when I disconnect the socket and I immediately reconnects, I get
an error EStackOverflow
And if the reconnect is not "immediately" (you wait more time), the
error does not occur?
Have you checked the stack trace, in that stack overflow condition
> I already try, after reading the Wiki, the Shutdown(1) procedure, anyway, the
> result is the same. I try close, shutdown, abort ... etc.
Make a stripped down version of your application and mail it to me. Be sure to
include a complete project with only the code required to reproduce the error
LeNif wrote:
> I already try, after reading the Wiki, the Shutdown(1) procedure,
> anyway, the result is the same. I try close, shutdown, abort ... etc.
Try the following:
>From the OnSessionClosed event handler post a custom window
message and reconnect when that message is handled.
--
Arno
. Maybe
I must use a runtime created socket to solve this behaviour ?
Thanks F.
LeNif
From: François Piette
Date: 2012-10-24 21:22
To: 'ICS support mailing'
Subject: Re: [twsocket] TWsocket and EStackOverflow
You should try using Shutdown instead of closing your end. Shutdown ask the
o
ssage d'origine-
De : twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] De la
part de LeNif
Envoyé : mercredi 24 octobre 2012 20:29
À : twsocket
Objet : Re: [twsocket] TWsocket and EStackOverflow
Hello,
When I use Wireshark to snif communication, I see that exchange with the device
CS support mailing'
Subject: Re: [twsocket] TWsocket and EStackOverflow
I don't see anything obviously wrong there.
Just to be sure, please test one of the sample programs (For example
OverbyteIcsClient7.dproj which is close to your own test) delivered with ICS to
see if they works OK. I
ation.
--
francois.pie...@overbyte.be
Embarcadero MVP
http://www.overbyte.be
-Message d'origine-
De : twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] De la
part de LeNif
Envoyé : mercredi 24 octobre 2012 07:55
À : twsocket
Objet : Re: [twsocket] TWsocket and EStackOverflow
Hello,
> Hello, thanks but I already wait for OnsessionClosed befor restarting.
"Wait" ? Does this means you don't use the events ?
> I post a capture with log info here ...
> http://imageshack.us/photo/my-images/844/screenshot47a.png/
Not very interesting...
If you have a stack overflow, you probabl
> My problem is when I disconnect the socket and I immediately reconnects, I
get an error EStackOverflow
> I can not find the cause of this error.
TWSocket is asynchronous. You must not reconnect before actual disconnection
is done. Use OnSessionClosed event to know when disconnection is complete.
Hi all,
I use TWSocket to interact with an industrial device.
I made a simple project for testing.
I can connect without problems, send and receive data. Until here all is well!
My problem is when I disconnect the socket and I immediately reconnects, I get
an error EStackOverflow
I can not find
11 matches
Mail list logo