Article View: borland.public.cppbuilder.nativeapi
Article #6037Re: How to Make Sure that Buffer use ONLY memory
From: JD
Date: Sun, 12 Jun 2005 13:17
Date: Sun, 12 Jun 2005 13:17
23 lines
1697 bytes
1697 bytes
"Daniel" <DenielMail@Internet.com> wrote: > > [...] my Windows-XP with my builder 4.0 So you know, BCB is a 32 bit compiler which means that it can reference 4GB so you could use a simple call to 'new' to allocate the buffer. > [...] I need AS MUCH AS POSSIBLE, my computer have 256 MB, > if it's possible i want to use ALL the 256 MB. That is not possible. By time the OS is up and running and your application is loaded, you can count on that eating up at least 100MB. I would suggest that you just try to allocate 150MB and if and when it fails, step down the size requested and try again until it succeeds. This method will also allow you to have the compiler loaded for testing but still perform at it's best when run independently. ~ JD
Technical Details
Message-ID:
<42ac35d0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42ab3793$1@newsgroups.borland.com> <gjmna117s71qnpihpbtg7sqmbbvaob90q6@4ax.com> <42abfa21$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: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: Re: How to Make Sure that Buffer use ONLY memory Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 64.12.116.131 X-Forwarded-For: 172.167.134.191 References: <42ab3793$1@newsgroups.borland.com> <gjmna117s71qnpihpbtg7sqmbbvaob90q6@4ax.com> <42abfa21$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <42ac35d0$1@newsgroups.borland.com> Date: 12 Jun 2005 06:17:04 -0700 X-Trace: newsgroups.borland.com 1118582224 207.105.83.66 (12 Jun 2005 06:17:04 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail