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.
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,
: [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 checked the stack trace
.
--
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,
When I say
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. If not, then you have
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
continue
. 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
other party
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
--
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 probably