Article View: borland.public.cppbuilder.nativeapi
Article #10378Re: Thread creation error: not enough memory
From: Eugene Mayevski [SecureBlackbox]
Date: Wed, 21 Apr 2004 13:33
Date: Wed, 21 Apr 2004 13:33
16 lines
1683 bytes
1683 bytes
Lothar wrote: > every 7-10 days my program comes up with an exception: > Thread creation error: Nicht gen๏ฟฝgend Arbeitsspeicher (not enough memory) Each thread is allocated with 1MB of virtual memory for stack. Although it's virtual memory, it's also limited with 2Gb. Looks like this is the memory that's missing - you don't free threads and create other ones. Soon your application gets more than 2K of threads running (sleeping) and you get into this trouble. -- Eugene Mayevski EldoS Corp., CTO Security and networking solutions http://www.eldos.com
Technical Details
Message-ID:
<40867831@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4086696d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,c8565ce6e82c46dd X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-04-21 06:40:20 PST Date: Wed, 21 Apr 2004 16:33:35 +0300 From: "Eugene Mayevski [SecureBlackbox]" <mayevski@eldos.org> Organization: EldoS Corporation User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, ru, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Thread creation error: not enough memory References: <4086696d$1@newsgroups.borland.com> In-Reply-To: <4086696d$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 82.144.222.199 Message-ID: <40867831@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1082554417 82.144.222.199 (21 Apr 2004 06:33:37 -0700) Lines: 17 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail