Memory error handling. More...
#include <Inventor/errors/SoMemoryError.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
Static Public Member Functions | |
static void | setHandlerCallback (SoErrorCB *cb, void *data) |
static SoErrorCB * | getHandlerCallback () |
static void * | getHandlerData () |
static void | setMemoryCleanupCallback (SoMemoryCleanupCB *cb, void *data) |
static SoType | getClassTypeId () |
static void | post (const SbString &whatWasAllocated) |
static void | post (const char *whatWasAllocated) |
Memory error handling.
SoMemoryError is used for errors reported due to lack of memory. See SoError for full discussion of error handling in Open Inventor.
The post() method takes a string describing the item that was to be allocated, such as "cylinder vertex array".
setMemoryCleanupCallback() can be used to set a handler function that will be called when a memory allocation fails. The function can release some memory to allow the allocation to succeed.
SoDebugError, SoReadError, SoGLError
static SoType SoMemoryError::getClassTypeId | ( | ) | [static] |
Returns type identifier for SoMemoryError class.
Reimplemented from SoError.
static SoErrorCB* SoMemoryError::getHandlerCallback | ( | ) | [static] |
Returns handler callback for SoMemoryError class.
Reimplemented from SoError.
static void* SoMemoryError::getHandlerData | ( | ) | [static] |
Returns handler data for SoMemoryError class.
Reimplemented from SoError.
virtual SoType SoMemoryError::getTypeId | ( | ) | const [virtual] |
Returns type identifier for an instance of this class.
Reimplemented from SoError.
static void SoMemoryError::post | ( | const char * | whatWasAllocated | ) | [static] |
Posts an error.
Reimplemented from SoError.
static void SoMemoryError::post | ( | const SbString & | whatWasAllocated | ) | [static] |
Posts an error.
static void SoMemoryError::setHandlerCallback | ( | SoErrorCB * | cb, | |
void * | data | |||
) | [static] |
Sets handler callback for SoMemoryError class.
Reimplemented from SoError.
static void SoMemoryError::setMemoryCleanupCallback | ( | SoMemoryCleanupCB * | cb, | |
void * | data | |||
) | [static] |
Sets memory cleanup handler callback for SoMemoryError class.