J
Joanna Carter [TeamB]
"Peter Olcott" <[email protected]> a écrit dans le message de [email protected]...
| Yet it does not make this decision on an arbitrary and capricious manner,
it
| only actually pages to disk when it needs to. Since I will most often only
need
| less than 200MB, and the minimum requirements for my application will be
stated
| as 500MB, there is no sense for me to always manually page to disk, when
this
| paging is not necessary.
Don't forget that, if your program is not the only one running on the
machine, then paging may happen sooner than you think, because other
programs may have already exhausted the physical memory before you get a
chance to allocate your memory block.
This is Windows; you are not in charge. And when a user only has 512MB or
even 1GB, then your application isn't going to look too smart; even 2GB can
soon disappear before you get a look in
Joanna
| Yet it does not make this decision on an arbitrary and capricious manner,
it
| only actually pages to disk when it needs to. Since I will most often only
need
| less than 200MB, and the minimum requirements for my application will be
stated
| as 500MB, there is no sense for me to always manually page to disk, when
this
| paging is not necessary.
Don't forget that, if your program is not the only one running on the
machine, then paging may happen sooner than you think, because other
programs may have already exhausted the physical memory before you get a
chance to allocate your memory block.
This is Windows; you are not in charge. And when a user only has 512MB or
even 1GB, then your application isn't going to look too smart; even 2GB can
soon disappear before you get a look in
Joanna