🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

And a Question for JD, or anyone.

#6065
From: Deniel
Date: Mon, 13 Jun 2005 22:00
28 lines
1877 bytes
JD, i have tried the following code and it's NEVER get to the
breakpoint that i set on the 'cout <<' line in the catch part, 
how do you explain this? - 

__fastcall TForm1::TForm1( TComponent *Owner ) : TForm( Owner )
{
  double *HugeBuffer = NULL;

  try
  {
    HugeBuffer = new double[0xFFFFFFFFFFFFFFFFFFFFFFFF];
  }
   catch ( std::bad_alloc )
   {
     cout << "Could not allocate. Bye ...";
     exit(-1);
   }

  delete [] HugeBuffer;
}

Do you see how much memory did i try to allocate here? i think
that it's much more then what my hard-drive have... 

I'm using Windows-XP, Builder 4.0.

Dani.
Technical Details
Message-ID: <42ae01e6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42ab3793$1@newsgroups.borland.com> <gjmna117s71qnpihpbtg7sqmbbvaob90q6@4ax.com> <42abfa21$1@newsgroups.borland.com> <kdqoa11nmfhki6qcdmue2vt9poh235d958@4ax.com> <42ac9598$1@newsgroups.borland.com> <0fhpa19iu9nv8c4kalnej9mp85r2jm2irs@4ax.com> <42ad5684$1@newsgroups.borland.com> <renqa1t8i9e0glhhereu7tj4u0mekqqrfk@4ax.com> <lrbra1te6a0k6pg39bt8u46hb471ndmn6u@4ax.com> <42adf900$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,93efc3d53d15c3e4
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Deniel" <DenielMail@Internet.com>
Sender: "Deniel" <DenielMail@Internet.com>
Reply-To: "Deniel" <DenielMail@Internet.com>
Subject: And a Question for JD, or anyone.   
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 217.132.34.137     
References: <42ab3793$1@newsgroups.borland.com> <gjmna117s71qnpihpbtg7sqmbbvaob90q6@4ax.com> <42abfa21$1@newsgroups.borland.com> <kdqoa11nmfhki6qcdmue2vt9poh235d958@4ax.com> <42ac9598$1@newsgroups.borland.com> <0fhpa19iu9nv8c4kalnej9mp85r2jm2irs@4ax.com> <42ad5684$1@newsgroups.borland.com> <renqa1t8i9e0glhhereu7tj4u0mekqqrfk@4ax.com> <lrbra1te6a0k6pg39bt8u46hb471ndmn6u@4ax.com> <42adf900$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <42ae01e6$1@newsgroups.borland.com>
Date: 13 Jun 2005 15:00:06 -0700
X-Trace: newsgroups.borland.com 1118700006 207.105.83.66 (13 Jun 2005 15:00:06 -0700)
Lines: 29
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail