|
-
February 2nd, 2004, 11:12 PM
#1
Problem with HeapFree
Hi,
I am allocating memory in the Heap.
pV = HeapAlloc(Mem, 0, ulSize);
I am freeing the memory using HeapFree function.
HeapFree(SesMem, 0, pV);
But the problem is when i tried to the free of the same memory again
HeapFree(SesMem, 0, pV);,
i am getting a Memory Leak. Is there a way to find that this heap has been freed already.
i.e when i try to free the heap memory that is freed already, i shold be in a able to find that this heap memory has been freed already and free should not be done now.
Thanks in Advance,
Varadha
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|