Article View: borland.public.cppbuilder.nativeapi
Article #2732Re: Creating new TForm causes 'Out of Resources' error on WinXP
From: David Pratt
Date: Fri, 19 Jan 2007 11:27
Date: Fri, 19 Jan 2007 11:27
12 lines
1439 bytes
1439 bytes
> void MyClass::TheLoop()
> {
> bool Stop = false;
> while (!Stop)
> {
> TCustomForm *theDialogThatCrashes;
> theDialogThatCrashes = new TCustomForm(this); //<-- This is where
> the out of resources occurs
I don't know about subsequent versions, but Version 5 says do NOT create
instances of TCustom form; Instantiate descendants of TCustomForm instead.
Technical Details
Message-ID:
<45b0aafe@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45afcda9$1@newsgroups.borland.com> <45afd2ea$1@newsgroups.borland.com> <45afd751$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,81568e00a202778e X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "David Pratt" <Prattaratt@sbcglobal.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <45afcda9$1@newsgroups.borland.com> <45afd2ea$1@newsgroups.borland.com> <45afd751$1@newsgroups.borland.com> Subject: Re: Creating new TForm causes 'Out of Resources' error on WinXP Date: Fri, 19 Jan 2007 05:27:22 -0600 Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 70.137.31.213 Message-ID: <45b0aafe@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1169206014 70.137.31.213 (19 Jan 2007 03:26:54 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail