Interface SoMemoryError.Handler

  • Enclosing class:
    SoMemoryError

    public static interface SoMemoryError.Handler
    • 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 least requestedByteSize 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.