public Something() { const int allocSize = 7*1024*1024; hMem = Marshal.AllocHGlobal(allocSize); GC.AddMemoryPressure(allocSize); }