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).

 

Unit

EMemLeaks

 

Syntax

 

Code (Delphi)

function EurekaTryGetMem(

Size: PtrUInt

): Pointer;

 

Parameters

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.

 

Remarks

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.

Note

Unlike EurekaGetMem, EurekaTryGetMem function can be called manually.

 

 

See also

MemLeaksError Event Handler
MemLeaksErrorsToIgnore Global Variable



Send feedback... Build date: 2023-09-11
Last edited: 2023-09-11
PRIVACY STATEMENT
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: https://www.eurekalog.com/help/eurekalog/topic_function_ememleaks_eurekatrygetmem.php