Class SoMemoryError

  • public class SoMemoryError
    extends SoError
    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:
    SoDebugError, SoReadError, SoGLError
    • Constructor Detail

      • SoMemoryError

        public SoMemoryError()
        Default constructor.
    • 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.