Package com.openinventor.inventor.errors
Interface SoMemoryError.Handler
-
- Enclosing class:
- SoMemoryError
public static interface SoMemoryError.Handler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
invoke(SoMemoryError error)
Callback to handle memory errors.boolean
invokeMemoryCleanup(long requestedByteSize)
Memory cleanup handling callback.
-
-
-
Method Detail
-
invoke
void invoke(SoMemoryError error)
Callback to handle memory errors.- Parameters:
error
- the posted error
-
invokeMemoryCleanup
boolean invokeMemoryCleanup(long requestedByteSize)
Memory cleanup handling callback. This callback is called when Open Inventor is not able to allocate at leastrequestedByteSize
bytes of memory. This notifies the application that available memory is too low. The application can try to release some memory to allow the allocation to succeed. If the callback returns true then Open Inventor will retry its allocation call.
-
-