🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Full Access to 2 GB memory RAM ?

#5927
From: Deniel
Date: Sun, 26 Jun 2005 11:43
15 lines
1171 bytes
Hi again :-) 

Using Builder 4.0 C++ on XP computer, if my PC have 2 GB of RAM
memory, can i write in my program - 

int *MyBuffer = new int[0.85 * ( 2 ^ 31 )]; 

and expect that this buffer will sit whole on the RAM (without 
paging to the Hard-Disk) and that i'll have full access to all 
it's cells from  MyBuffer[0] till MyBuffer[1825361100] ? 

Thanks very much!

Dani.
Technical Details
Message-ID: <42be94fa$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.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

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,256f8494310fe6f6,start
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: Full Access to 2 GB memory RAM ?  
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 62.0.27.159     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <42be94fa$1@newsgroups.borland.com>
Date: 26 Jun 2005 04:43:54 -0700
X-Trace: newsgroups.borland.com 1119786234 207.105.83.66 (26 Jun 2005 04:43:54 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.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