Determines if this allocator was used to allocate the specified block of memory.

int DidAlloc(

void *pv
//The pointer to the memory block



Specifies the pointer to the memory block; can be a NULL pointer, in which case, -1 is returned.

Return Values

The memory block was allocated by this IMalloc instance.


The memory block was not allocated by this IMalloc instance.


DidAlloc is unable to determine whether or not it allocated the memory block.


Calling IMalloc::DidAlloc is useful if a application is using multiple allocations, and needs to know whether a previously allocated block of memory was allocated by a particular allocation.

See Also

IMalloc::Alloc, IMalloc::HeapMinimize, IMalloc::Realloc

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database