🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Thanks! and a General Reply For All.

#6004
From: Deniel
Date: Wed, 15 Jun 2005 20:32
46 lines
2723 bytes
Thanks Very much!

By the way, is there any way to check if my array or part of 
it is sitting on the hard-disk and not on the RAM? is there any
way to do something like this ?  

for ( int i = 0; i < SizeOfArray; i++ )
}
  if ( IsItAnHardDiskAddress( &MyArray[i] ) 
    Application->Message( " Paged to the hard-disk! " ); 
}

Thanks!

Dani.



"Andrue Cope [TeamB]" <no.spam@not.a.valid.address> wrote:
>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: <42b0904e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!tsicnews.teliasonera.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!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> <42ae5114$1@newsgroups.borland.com> <42ae9a20@newsgroups.borland.com> <42af5273$1@newsgroups.borland.com> Date: <42afe21e$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" <Deniel@Deniel.com>
Sender: "Deniel" <Deniel@Deniel.com>
Reply-To: "Deniel" <Deniel@Deniel.com>
Subject: Re: Thanks! and a General Reply For All.
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 217.132.153.17     
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: <42afe21e$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <42b0904e$1@newsgroups.borland.com>
Date: 15 Jun 2005 13:32:14 -0700
X-Trace: newsgroups.borland.com 1118867534 207.105.83.66 (15 Jun 2005 13:32:14 -0700)
Lines: 47
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!tsicnews.teliasonera.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail