Article View: borland.public.cppbuilder.nativeapi
Article #2497Re: Memory Leak - TForm or TStringGrid or DynamicArray
From: Dan Mayo
Date: Thu, 08 Feb 2007 14:30
Date: Thu, 08 Feb 2007 14:30
14 lines
1636 bytes
1636 bytes
> Redundant test, BTW - delete NULL is safe anyway. What? TForm test; delete test; //fails miserably Still don't understand why I am getting an exception when I try to create a new TForm object. The exception reports that I am out of memory; however, if I immediately close the message saying the error exists, and then try to create the form again all is well. Is there a way to test to see if I have enough memory, or pause until there is enough memory, so that new TForm will succeed?
Technical Details
Message-ID:
<45cb3451$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45c7810f@newsgroups.borland.com> <45c7dc8d$1@newsgroups.borland.com> <45c89ec6@newsgroups.borland.com> <45ca4546$1@newsgroups.borland.com> <0sqks2t4c90epuc62bv635h36cqeat0ujd@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,191a7d21d69bde32 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 08 Feb 2007 08:30:43 -0600 From: Dan Mayo <do_not_spam_dmayo2@netzero.com> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Memory Leak - TForm or TStringGrid or DynamicArray References: <45c7810f@newsgroups.borland.com> <45c7dc8d$1@newsgroups.borland.com> <45c89ec6@newsgroups.borland.com> <45ca4546$1@newsgroups.borland.com> <0sqks2t4c90epuc62bv635h36cqeat0ujd@4ax.com> In-Reply-To: <0sqks2t4c90epuc62bv635h36cqeat0ujd@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: <45cb3451$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1170945105 216.174.165.174 (8 Feb 2007 06:31:45 -0800) Lines: 14 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail