Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoMemoryError.h File Reference

Go to the source code of this file.

Classes

class  SoMemoryError
 Memory error handling. More...
 

Typedefs

typedef bool SoMemoryCleanupCB(const size_t requestedByteSize, void *data)
 Memory cleanup handling callback.
 

Typedef Documentation

◆ SoMemoryCleanupCB

typedef bool SoMemoryCleanupCB(const size_t requestedByteSize, void *data)

Memory cleanup handling callback.

SoMemoryCleanupCB is called when Open Inventor is not able to allocate at least requestedSize bytes of memory. This notifies the application that available memory is too low. The application can try to release some memory to allow the allocation to succeed. If the callback returns true then Open Inventor will retry its allocation call.

SEE ALSO

SoMemoryError::setMemoryCleanupCallback

Definition at line 72 of file SoMemoryError.h.