Home > Language Reference > Classes > StreamMemory
hMem Property
Handle or pointer to the memory block the object holds.
Syntax
Public Property Get hMem() As Long
Remarks
The hMem property returns a handle or a pointer to the memory block the object holds, depending on the Kind property. The following table summarizes this:
| Kind | Return value |
| hbStreamUnallocated | Zero. |
| hbStreamHeap | A handle to a memory block in the dynamic heap. |
| hbStreamStorage | A handle to a memory block in the storage heap. |
| hbStreamMapped | The pointer that was passed to the Map method. |
In case hMem returns a handle, this handle can be used with any of the Palm OS® Memory Manager functions, such as the MemHandleLock or MemHandleUnlock functions.
For further information on shared libraries and communication between HB++ and the C language, refer to the Shared library chapter in the Programmer's Guide and the description of the Declare statement.
The FontDemo example illustrates a possible use of this property.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | N/A |