SoMemoryError Class Reference
[Errors]

Memory error handling. More...

#include <Inventor/errors/SoMemoryError.h>

Inheritance diagram for SoMemoryError:
SoError SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const

Static Public Member Functions

static void setHandlerCallback (SoErrorCB *cb, void *data)
static SoErrorCBgetHandlerCallback ()
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)

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


Member Function Documentation

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.


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

Open Inventor Toolkit reference manual, generated on 22 Sep 2021
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/