public class SoMemoryError extends SoError
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:
Modifier and Type | Class and Description |
---|---|
static interface |
SoMemoryError.Handler |
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoMemoryError()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
post(java.lang.String whatWasAllocated)
Posts an error.
|
static void |
setHandlerCallback(SoMemoryError.Handler h)
Sets the handler for SoMemoryError class.
|
getDebugString, setHandlerCallback
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public static void setHandlerCallback(SoMemoryError.Handler h)
public static void post(java.lang.String whatWasAllocated)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com