Re: TIdTCPClient - Thread Creation error: Not enough storage is available to pr

Giganews Newsgroups
Subject: Re: TIdTCPClient - Thread Creation error: Not enough storage is available to pr
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Wed, 31 May 2006

"Robert Rasmusens" <wjgro…@weir-jones.com> wrote in message
news:447DC609.C0D5A4…@weir-jones.com...

> I am getting the following error

Your machine would have to be very low on resources to get that kind of
error.

> I get the error on the Connect command for a TIdTCPClient.

Connect() uses a thread internaly to handle the ConnectTimeout parameter.

> The memory used is shown as 786 meg leaving about 2.2 GB free.

Memory has nothing to do with resources.  They are separate things.

> The application is creating approximately 250 TIdTCPClient's

There is part of your problem.  Don't create so many sockets to begin with.

Gambit

Replies

In response to

TIdTCPClient - Thread Creation error: Not enough storage is available to process posted by Robert Rasmusens on Wed, 31 May 2006