GEOS SDK TechDocs
|
|
3 Using Virtual Memory
|
3.2 Opening or Creating a VM File
There are five basic steps to using VM files. The steps are outlined below, and described in greater detail in the following sections.
VMOpen()
. This routine can be used to open an existing VM file or create a new one. If you use the document control objects, they will open and create files automatically. Once you have created a VM file, you may want to change its attributes with
VMSetAttributes()
.
VMLock()
. You can also create new blocks with
VMAlloc()
and
VMAttach()
.
VMUnlock()
. If you change the memory, you should mark it dirty with
VMDirty()
before unlocking it. This ensures that the new version of the block will be written to the disk.
VMClose()
when you are done with the file. It will update the file and close it.
GEOS SDK TechDocs
|
|
3 Using Virtual Memory
|
3.2 Opening or Creating a VM File