Re: Memory leaks when using sockets
- From: "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
- Date: Tue, 20 Dec 2005 10:28:34 -0700
OK, I don't see anything wrong with that. You are probably running into a
limitation of the system and will have to find a work-around.
Paul T.
"Albert2" <hxt.nguyen@xxxxxxxxx> wrote in message
news:1134637472.915256.30450@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> More details about my problem : my application connect to a socket
> server using GPRS modem. Due to GPRS limitation there could be many
> random disconnections. When detecting disconnection the application
> perform the following process :
> - Closing sockets
> - Closing RAS
>
> And then :
>
> - Connecting RAS
> - Connecting sockets
>
> BOOL SocketsDisconnect (void)
> {
> int i;
> for (i=0;i < 3;i++)
> {
> if (iSocket[i] != INVALID_SOCKET)
> {
> closesocket(iSocket[i]);
> iSocket[i] = INVALID_SOCKET;
> }
> }
> return TRUE;
> }
>
> Regards
> Albert
>
.
- Follow-Ups:
- Re: Memory leaks when using sockets
- From: Albert2
- Re: Memory leaks when using sockets
- References:
- Memory leaks when using sockets
- From: Albert2
- Re: Memory leaks when using sockets
- From: Paul G. Tobey [eMVP]
- Re: Memory leaks when using sockets
- From: Albert2
- Re: Memory leaks when using sockets
- From: Paul G. Tobey [eMVP]
- Re: Memory leaks when using sockets
- From: Albert2
- Re: Memory leaks when using sockets
- From: Paul G. Tobey [eMVP]
- Re: Memory leaks when using sockets
- From: Albert2
- Re: Memory leaks when using sockets
- From: Albert2
- Memory leaks when using sockets
- Prev by Date: Re: Serial Communications Driver
- Next by Date: Re: Beginer Question (compile to different targets/cpu)
- Previous by thread: Re: Memory leaks when using sockets
- Next by thread: Re: Memory leaks when using sockets
- Index(es):
Relevant Pages
|