SoMemoryErrorMemoryCleanupCallback Delegate |
Memory cleanup handling callback.
Namespace: OIV.Inventor.ErrorsAssembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax public delegate bool MemoryCleanupCallback(
ulong requestedByteSize
)
Public Delegate Function MemoryCleanupCallback (
requestedByteSize As ULong
) As Boolean
public delegate bool MemoryCleanupCallback(
unsigned long long requestedByteSize
)
type MemoryCleanupCallback =
delegate of
requestedByteSize : uint64 -> bool
Parameters
- requestedByteSize
- Type: SystemUInt64
Return Value
Type:
BooleanRemarks SoMemoryCleanupCB is called when Open Inventor is not able to allocate at least requestedSize 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.
See Also