Root > Reference > All Functions > EurekaTryGetMem

Function EurekaTryGetMem

Previous pageReturn to chapter overviewNext page   

Allocates a memory block via EurekaLog memory filter (w/o error checking).







Code (Delphi)

function EurekaTryGetMem(

Size: PtrUInt

): Pointer;



Size [in]

A size of memory block to allocate (in bytes).


Return value

A pointer to allocated memory block of Size bytes (not initialized to zero) or nil if memory error occurs.



EurekaTryGetMem allocates a block of the given Size on the heap, and returns the address of this memory. The bytes of the allocated buffer are not set to zero. To dispose of the buffer, use EurekaFreeMem. If there is not enough memory available to allocate the block, nil is returned.


Unlike EurekaGetMem, EurekaTryGetMem function can be called manually.



See also

MemLeaksError Event Handler
MemLeaksErrorsToIgnore Global Variable

Send feedback... Build date: 2022-03-28
Last edited: 2022-03-28
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.

Permanent link to this article: