Click or drag to resize
SoMemoryError Class

Memory error handling.

Inheritance Hierarchy
SystemObject
  OIV.InventorSoNetBase
    OIV.Inventor.ErrorsSoError
      OIV.Inventor.ErrorsSoMemoryError

Namespace: OIV.Inventor.Errors
Assembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public class SoMemoryError : SoError

The SoMemoryError type exposes the following members.

Constructors
  NameDescription
Public methodSoMemoryError
Default constructor.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetDebugString

Returns debug string containing full error information from instance.

(Inherited from SoError.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberPost

Posts an error.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyStatic memberHandlerCallback

Sets handler callback for OIV.Inventor.Errors.SoMemoryError class.

Public propertyStatic memberMemoryCleanupHandler

Sets memory cleanup handler callback for OIV.Inventor.Errors.SoMemoryError class.

Top
Remarks

OIV.Inventor.Errors.SoMemoryError is used for errors reported due to lack of memory. See OIV.Inventor.Errors.SoError for full discussion of error handling in Open Inventor.

The OIV.Inventor.Errors.SoMemoryError.Post(System.String) method takes a string describing the item that was to be allocated, such as "cylinder vertex array".

OIV.Inventor.Errors.SoMemoryError.MemoryCleanupHandler 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