Displaying 1 result from an estimated 1 matches for "heepfree".
Did you mean:
heapfree
2008 Aug 28
0
Re: Please die if you wait "too long" RtlpWaitForCriti
...need to call the following before my
> code block -- I thought I was being cautious. (The MTAPI says to call
> it after). My app seems to be working fine now without this initial
> HeapFree.
> if (g_pTrades != NULL)
> ::HeapFree(hHeap, 0, g_pTrades);
The check for NULL is extra. HeepFree (same as normal free() ) ignores NULL pointers. So most likely you are freeing something you did not allocate.
Or as you said - freeing something twice. HeepFree (as well as normal free) does not modify the passed in pointer.