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:

KindReturn value
hbStreamUnallocatedZero.
hbStreamHeapA handle to a memory block in the dynamic heap.
hbStreamStorageA handle to a memory block in the storage heap.
hbStreamMappedThe 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

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A