| SoMemoryError Class |
Memory error handling.
Namespace: OIV.Inventor.Errors
The SoMemoryError type exposes the following members.
| Name | Description | |
|---|---|---|
| SoMemoryError | Default constructor. |
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| GetDebugString | Returns debug string containing full error information from instance. | |
| GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Post | Posts an error. | |
| SetHandlerCallback(SoErrorErrorCallback) | Obsolete.
Obsolete.
Use HandlerCallback property instead.
| |
| SetHandlerCallback(SoErrorErrorUserDataCallback, Object) | Obsolete.
Obsolete.
Use HandlerCallback property instead.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| HandlerCallback | Sets handler callback for SoMemoryError class. | |
| MemoryCleanupHandler | Sets memory cleanup handler callback for SoMemoryError class. |
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.