"James Hawkins" <truiken at gmail.com> wrote: >> What's the reason for checking the HeapFree here? Or what's the reason for doing >> it at all? >> > > To show that the value returned is not in the heap. Isn't any of HeapValidate or HeapSize better in that case? -- Dmitry.