HeapSize) may not be used with freed memory, as they may return bogus data. Function calls that return information about memory (such as If you require information, do not free memory containing the information. After that memory is freed, any information that may have been in it is gone forever. You should not refer in any way to memory that has been freed by GetLastError for extended error information. If the function fails, the return value is zero. If the function succeeds, the return value is nonzero. The system may create additional threads within the application's process, such as a CTRL+C handler, that simultaneously access the process heap.Ī pointer to the memory block to be freed. In this case, it is not necessary to additionally specify HEAP_NO_SERIALIZE in this function call.ĭo not specify this value when accessing the process heap. To ensure that serialized access is disabled for all calls to this function, specify HEAP_NO_SERIALIZE in the call to HeapCreate. Specifying the following value overrides the corresponding value specified in the flOptions parameter when the heap was created by using the Syntax BOOL HeapFree(Ī handle to the heap whose memory block is to be freed.
0 Comments
Leave a Reply. |