There is also GC.malloc, which does basically the same. It has some bells on it, but I know not for sure what they do.
GC.malloc will allocate managed memory (it will be unallocated when the GC will not see any references to it).
To allocate unmanaged memory, use malloc from core.stdc.stdlib. -- Best regards, Vladimir mailto:vladi...@thecybershadow.net