Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::memory::ReleaseEx Function
C++
MEM_PROC POINTER MEM_API ReleaseEx(POINTER pData DBG_PASS);
#define Release(p) ReleaseEx( (p) DBG_SRC )
Parameters 
Description 
pointer to allocated block to release. 

Releases an allocated block. Memory becomes free to allocate again. If debugging information is passed, the releasing source and line is recorded in the block. (can be used to find code deallocating memory it shouldn't). 

This also works with Hold(), and decrements the hold counter. If there are no more holds on the block, then the block is released.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!