Package com.openinventor.inventor.errors
Class SoMemoryError
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.errors.SoError
-
- com.openinventor.inventor.errors.SoMemoryError
-
public class SoMemoryError extends SoError
Memory error handling.SoMemoryErroris used for errors reported due to lack of memory. SeeSoErrorfor 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSoMemoryError.Handler-
Nested 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 Constructor Description SoMemoryError()Default constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidpost(java.lang.String whatWasAllocated)Posts an error.static voidsetHandlerCallback(SoMemoryError.Handler h)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
-
-
-
-
Method Detail
-
setHandlerCallback
public static void setHandlerCallback(SoMemoryError.Handler h)
Sets the handler for SoMemoryError class.
-
post
public static void post(java.lang.String whatWasAllocated)
Posts an error.
-
-