🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10284

Re: Thread creation error: not enough memory

#10284
From: Remy Lebeau (TeamB)
Date: Wed, 21 Apr 2004 22:41
24 lines
1889 bytes
"Lothar" <Lothar.Huppertz@gmx.de> wrote in message
news:4086ed6a$1@newsgroups.borland.com...

> It's not more than 10 threads at a time.

Are you terminating and creating new threads over and over?  If so, you
should consider caching and reusing threads.  It is expensive on system
resources to destroy and recreate threads.

Do your threads have dynamically allocated memory/resources?  If so, are you
freeing them?

Have you checked your program for memory/resource leaks using any one of a
number of tools designed for that?  Have you enabled CodeGuard?

> And if that's the problem the error message should be different.

No, it should not be.  The error message is accurate, as it is displaying
the actual error that the OS itself is reporting as being the problem of the
failure.


Gambit
Technical Details
Message-ID: <4086fa2b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4086696d$1@newsgroups.borland.com> <40867831@newsgroups.borland.com> <408698f3@newsgroups.borland.com> <4086abc6$1@newsgroups.borland.com> <4086ed6a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,c8565ce6e82c46dd
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-21 16:10:03 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4086696d$1@newsgroups.borland.com> <40867831@newsgroups.borland.com> <408698f3@newsgroups.borland.com> <4086abc6$1@newsgroups.borland.com> <4086ed6a$1@newsgroups.borland.com>
Subject: Re: Thread creation error: not enough memory
Date: Wed, 21 Apr 2004 15:41:49 -0700
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.138.253
Message-ID: <4086fa2b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1082587691 67.22.138.253 (21 Apr 2004 15:48:11 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail