private static void DestroyHeap() { IntPtr hHeap2 = hHeap; hHeap = IntPtr.Zero; SafeNativeMethods.HeapDestroy(hHeap2); }