Can't free memory allocated in a C DLL?

Simon s.d.hammett at gmail.com
Fri Aug 5 11:16:03 PDT 2011


On 05/08/2011 19:00, Andrej Mitrovic wrote:
> Maybe HeapFree, MS says GlobalFree shouldn't be used anymore.

You can't use HeapFree to free memory allocated by the MS crt.

And even it did happen to work you've no guarantee it would continue to 
work in future.

You always have to use the free method which is appropriate for the 
method which allocated the memory in the first place.

-- 
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk


More information about the Digitalmars-d mailing list