ADC Home > Reference Library > Technical Q&As > Legacy Documents > Hardware & Drivers >
Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.
Current information on this Reference Library topic can be found here:
|
Q: When I unlock memory with A: It affects the whole page, not just a smaller part of it. The Virtual Memory
lock and hold functions not only lock or hold a page (or pages) of memory, they
also increment an internal counter associated with those VM pages. The counter
for a page of memory has to return to its initial value (i.e., the value the
counter was when the page was in the unlocked/unheld state) before a page is
finally unlocked or unheld. So, even if you allocate a little piece of memory
and lock it, and the rest of your page is locked by another program, the other
program's LockMemory and UnlockMemory calls won't affect your locks. [May 01 1995] |
|