preventing the allocation and release of heap:
HeapLock
HeapUnlock