allocate memory in external code
free memory in external code
kernel handle returned by StartMaple
number of bytes to allocate
These functions are part of the OpenMaple interface to Microsoft Visual Basic.
The MapleAlloc function allocates n bytes of memory and returns a pointer to it. The MapleDispose function frees this memory so it can be reused for other purposes.
MapleAlloc is used to access temporary memory that will be cleaned up by the Maple garbage collector. The memory returned by MapleAlloc cannot be protected from gc. To allocate memory that persists, use standard non-Maple memory allocation methods.
MapleDispose releases the memory allocated to the structure s. It must be used only on data structures created using MapleAlloc.
Download Help Document