Package com.openinventor.inventor.errors
Interface SoMemoryError.Handler
- Enclosing class:
SoMemoryError
public static interface SoMemoryError.Handler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
invoke
(SoMemoryError error) Callback to handle memory errors.boolean
invokeMemoryCleanup
(long requestedByteSize) Memory cleanup handling callback.
-
Method Details
-
invoke
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.
-