DosSubUnsetMem ends the use of a memory pool.

All calls to DosSubSetMem must eventually be followed by a call to DosSubUnsetMem.

This call allows the suballocation function to release the resources that it used to manage the suballocation of the memory object. The call to DosSubUnsetMem must occur before the memory object is freed.

Note: DosAllocMem and DosAllocSharedMem both allocate a block of memory of the size requested rounded to the nearest page. On OS/2 Warp, the system allocates a 64K object without attributes on every allocation.

For example, for a DosAllocMem call with a size of 1, the following occurs:

Note:

When you allocate a memory object with the PAG_EXECUTE attribute, it is implied that this memory object also has the PAG_READ attribute. However, when querying the attributes of a memory object, you will get the following results:


[Back] [Next]