Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoMemoryError Class Reference

Memory error handling. More...

#include <Inventor/errors/SoMemoryError.h>

+ Inheritance diagram for SoMemoryError:

Public Member Functions

virtual SoType getTypeId () const
 Returns type identifier for an instance of this class.
 
- Public Member Functions inherited from SoError
const SbStringgetDebugString () const
 Returns debug string containing full error information from instance.
 
virtual ~SoError ()
 Destructor.
 
- Public Member Functions inherited from SoTypedObject
SbBool isOfType (const SoType &type) const
 Returns TRUE if this object is of the type specified in type or is derived from that type.
 
template<typename TypedObjectClass >
SbBool isOfType () const
 Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
 

Static Public Member Functions

static void setHandlerCallback (SoErrorCB *cb, void *data)
 Sets handler callback for SoMemoryError class.
 
static SoErrorCBgetHandlerCallback ()
 Returns handler callback for SoMemoryError class.
 
static void * getHandlerData ()
 Returns handler data for SoMemoryError class.
 
static void setMemoryCleanupCallback (SoMemoryCleanupCB *cb, void *data)
 Sets memory cleanup handler callback for SoMemoryError class.
 
static SoType getClassTypeId ()
 Returns type identifier for SoMemoryError class.
 
static void post (const SbString &whatWasAllocated)
 Posts an error.
 
static void post (const char *whatWasAllocated)
 Posts an error.
 
- Static Public Member Functions inherited from SoError
static void setHandlerCallback (SoErrorCB *cb, void *data)
 Sets handler callback for SoError class.
 
static SoErrorCBgetHandlerCallback ()
 Returns handler callback for SoError class.
 
static void * getHandlerData ()
 Returns handler data for SoError class.
 
static SoType getClassTypeId ()
 Returns type identifier for SoError class.
 
static SoPRINTF void post (const char *formatString ...)
 Posts an error.
 
- Static Public Member Functions inherited from SoTypedObject
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 

Detailed Description

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.

SEE ALSO

SoDebugError, SoReadError, SoGLError

Definition at line 94 of file SoMemoryError.h.

Member Function Documentation

◆ getClassTypeId()

static SoType SoMemoryError::getClassTypeId ( )
static

Returns type identifier for SoMemoryError class.

◆ getHandlerCallback()

static SoErrorCB * SoMemoryError::getHandlerCallback ( )
static

Returns handler callback for SoMemoryError class.

◆ getHandlerData()

static void * SoMemoryError::getHandlerData ( )
static

Returns handler data for SoMemoryError class.

◆ getTypeId()

virtual SoType SoMemoryError::getTypeId ( ) const
virtual

Returns type identifier for an instance of this class.

Reimplemented from SoError.

◆ post() [1/2]

static void SoMemoryError::post ( const char *  whatWasAllocated)
static

Posts an error.

◆ post() [2/2]

static void SoMemoryError::post ( const SbString whatWasAllocated)
static

Posts an error.

◆ setHandlerCallback()

static void SoMemoryError::setHandlerCallback ( SoErrorCB cb,
void *  data 
)
static

Sets handler callback for SoMemoryError class.

◆ setMemoryCleanupCallback()

static void SoMemoryError::setMemoryCleanupCallback ( SoMemoryCleanupCB cb,
void *  data 
)
static

Sets memory cleanup handler callback for SoMemoryError class.


The documentation for this class was generated from the following file: