Package com.openinventor.inventor.errors
Class SoMemoryError
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.errors.SoError
com.openinventor.inventor.errors.SoMemoryError
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:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Posts an error.static void
Sets the handler for SoMemoryError class.Methods inherited from class com.openinventor.inventor.errors.SoError
getDebugString, setHandlerCallback
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
SoMemoryError
public SoMemoryError()Default constructor.
-
-
Method Details
-
setHandlerCallback
Sets the handler for SoMemoryError class. -
post
Posts an error.
-