Article View: borland.public.cppbuilder.nativeapi
Article #2735Re: Creating new TForm causes 'Out of Resources' error on WinXP
From: Dan Mayo
Date: Fri, 19 Jan 2007 14:19
Date: Fri, 19 Jan 2007 14:19
21 lines
1961 bytes
1961 bytes
Bob Gonder wrote: > Dan Mayo wrote: > >> But back to the original point, I don't know why the error is occurring; > > Also note that there are other resources than GDI, such as various > handles. If you don't always close your handles, they can leak and run > you out of resources. > > How can I track this bug down? I am running the application with Task Manager open and I'm watching memory usage and #GDI Object. My memory usage hovers around 12MB and the number of GDIs hovers around 180. I can see the memory usage and GDI count go up as the program uses more and then right back down as objects are freed. The memory doesn't climb out of control; nor does the GDI count. Any ideas?
Technical Details
Message-ID:
<45b0d38c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!63.218.45.10!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45afcda9$1@newsgroups.borland.com> <45afd2ea$1@newsgroups.borland.com> <45afd751$1@newsgroups.borland.com> <45afe953$1@newsgroups.borland.com> <45aff139$1@newsgroups.borland.com> <rgh1r2ln049empurv72i8uith6amj1hl4c@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,81568e00a202778e X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 19 Jan 2007 08:19:27 -0600 From: Dan Mayo <dmayo@dickey-john.com> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Creating new TForm causes 'Out of Resources' error on WinXP References: <45afcda9$1@newsgroups.borland.com> <45afd2ea$1@newsgroups.borland.com> <45afd751$1@newsgroups.borland.com> <45afe953$1@newsgroups.borland.com> <45aff139$1@newsgroups.borland.com> <rgh1r2ln049empurv72i8uith6amj1hl4c@4ax.com> In-Reply-To: <rgh1r2ln049empurv72i8uith6amj1hl4c@4ax.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 216.174.165.174 Message-ID: <45b0d38c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1169216396 216.174.165.174 (19 Jan 2007 06:19:56 -0800) Lines: 21 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!63.218.45.10!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail