Article View: borland.public.cppbuilder.nativeapi
Article #5988Re: Thanks! and a General Reply For All.
From: Andrue Cope [TeamB]
Date: Wed, 15 Jun 2005 08:09
Date: Wed, 15 Jun 2005 08:09
26 lines
2362 bytes
2362 bytes
Deniel wrote: > and if i don't minimized my application - can i be sure that > all the cells of the arraySize[] array will be locked into the > physical memory without disk swapping? That seems to be the case, yes. I'm a little surprised but after doing that I loaded as many apps as I could find and the memory remained locked (the 'Mem used' column in Task Manager showed 500MB). When I minimized the test application 'Mem used' dropped down to a few MB. > You said that i have to allocate not more then 80% of the > avalible physical memory (RAM), does this code gives me the > value of AVAILABLE (free) physical RAM? > > GlobalMemoryStatus( &ms ); > physRAMAvail = ms.dwAvailPhys; Yes. That 80% is approximate though. You might want to play around with it a little to see what suits you. -- Andrue Cope [TeamB] [Bicester, Uk] http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<42afe21e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!npeer.de.kpn-eurorings.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<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> <42ae5114$1@newsgroups.borland.com> <42ae9a20@newsgroups.borland.com> <42af5273$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: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address> Subject: Re: Thanks! and a General Reply For All. Newsgroups: borland.public.cppbuilder.nativeapi 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> <42ae5114$1@newsgroups.borland.com> <42ae9a20@newsgroups.borland.com> <42af5273$1@newsgroups.borland.com> Date: Wed, 15 Jun 2005 09:09:06 +0100 User-Agent: XanaNews/1.17.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 NNTP-Posting-Host: 217.207.223.34 Message-ID: <42afe21e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1118822942 217.207.223.34 (15 Jun 2005 01:09:02 -0700) Lines: 26 X-Authenticated-User: acope Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!npeer.de.kpn-eurorings.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail