Re: [twsocket] Very strange Abnormal Program Termination

2007-04-09 Thread Arno Garrels
Fastream Technologies wrote: > Hello, > > The client still complains and he provides the following info: > > - This is a HTTP reverse proxy > - He uses a Lotus Domino web server (which is based on Apache) that > uses chunked encoding as well as content-length > - The problem occurs when keep-aliv

Re: [twsocket] Very strange Abnormal Program Termination

2007-04-09 Thread Fastream Technologies
Hello, The client still complains and he provides the following info: - This is a HTTP reverse proxy - He uses a Lotus Domino web server (which is based on Apache) that uses chunked encoding as well as content-length - The problem occurs when keep-alive is enabled - IQ web server which uses the

Re: [twsocket] properly closing a TWSocket

2007-04-09 Thread Arno Garrels
Markus Humm wrote: >> Markus Humm wrote: >> >>> My problem now is that FastMM reports a memory leak when the >>> application is terminated. >> >> The report attached says that an attempt has been detected to call >> a virtual method on a freed object. That isn't a memory leak. > > Yes I know. Wh

Re: [twsocket] properly closing a TWSocket

2007-04-09 Thread Markus Humm
> Markus Humm wrote: > >> My problem now is that FastMM reports a memory leak when the >> application is terminated. > > The report attached says that an attempt has been detected to call > a virtual method on a freed object. That isn't a memory leak. Yes I know. When I use the fulldebug switch

Re: [twsocket] properly closing a TWSocket

2007-04-09 Thread Arno Garrels
Arno Garrels wrote: [..] > May be the next connection is accepted too early? You could post > a custom message from OnSessionClosed and free and nil the > ClientWSocket > from the message handler in order to be sure. [..] Please forget this part of my last message. -- Arno Garrels [TeamICS] http

Re: [twsocket] properly closing a TWSocket

2007-04-09 Thread Arno Garrels
Markus Humm wrote: > My problem now is that FastMM reports a memory leak when the > application is terminated. The report attached says that an attempt has been detected to call a virtual method on a freed object. That isn't a memory leak. > The rest of the app. works well enough, I > can conne

[twsocket] properly closing a TWSocket

2007-04-09 Thread Markus Humm
Hello, my communication layer uses a TWSocket as TCP server socket and one for the actual communication as there will only be one connection at any give time. When the client requests a close of the connection I close the socket and in the OnSessionClosed I free it, because the server socket d