ILNumerics Ultimate VS

MemoryPoolHandleTFree Method

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Returns a chunk of memory back to the pool.

[ILNumerics Core Module]

Namespace:  ILNumerics.Core.MemoryLayer
Assembly:  ILNumerics.Core (in ILNumerics.Core.dll) Version: (5.5.7503.3146)

public virtual void Free(
	HandleT handle


Type: HandleT
HandleT refering to the memory chunk.

The pool will try to hold on to the memory pointed to by handle. If the handles memory length is too large and will not 'fit' into the pool (see: MaxSize) it will be released back to the Device memory, disposing the handle.

If the handles size is smaller than MaxSize but other objects currently stored in the pool prevent to store handle without exceeding MaxSize at least some of those handles will be released until there is enough free space in the pool to fit the new handle into the pool. This process (shrinking) may also involves the modification of the MaxSize property of the pool.

[ILNumerics Core Module]

See Also