C language function:HeapCompact sample codes

Search sample code in the internet.It is the result.


TITLE : Sometimes it looks like select IS broken: A WPF memory leak - Ayende @ Rahien
if (HeapCompact(heap, 0) == 0).......
http://ayende.com/blog/4221/sometimes-it-looks-like-select-is-broken-a-wpf-memory-leak


TITLE : Sometimes it looks like select IS broken: A WPF memory leak - Ayende @ Rahien
internal static extern uint HeapCompact(IntPtr heap, uint flags);.......
http://ayende.com/blog/4221/sometimes-it-looks-like-select-is-broken-a-wpf-memory-leak
TITLE : HeapCompact (Windows CE 5.0)
UINT HeapCompact(.......
http://msdn.microsoft.com/en-us/library/ee488005.aspx
TITLE : HeapCompact (Windows CE 5.0)
UINT HeapCompact(.......
http://msdn.microsoft.com/en-us/library/ms885655.aspx
TITLE : HeapCompact function (Windows)
SIZE_T WINAPI HeapCompact(.......
http://msdn.microsoft.com/ja-jp/library/windows/desktop/aa366598(v=vs.85).aspx
TITLE : An information and tutorial on the Windows Win32 memory management for the MFC or Windows GUI environment
As you can see, this small-block heap takes care of its own cleanup. The CRT's Windows heap doesn't automatically decommit and un-reserve pages, however. To clean up the larger blocks, you must call the CRT _heapmin() function, which calls the windows HeapCompact() function. Unfortunately, the Windows 95 version of HeapCompact() doesn't do anything, all the more reason to use Windows NT. Once pages are decommitted, other programs can reuse the corresponding swap file space........
http://www.tenouk.com/visualcplusmfc/visualcplusmfc20.html
search Google

https://www.google.com/#q=HeapCompact