MemoryPoolRequestCollection Event

Requests that classes using this MemoryPool release any unused buffers. Failing to do so may result in an OutOfMemoryException to occur.

Definition

Namespace: SnapDB.IO.Unmanaged
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public event EventHandler<CollectionEventArgs> RequestCollection

Value

EventHandlerCollectionEventArgs

Remarks

IMPORTANT NOTICE: Do not call AllocatePage(Int32, IntPtr) via the thread that raises this event. Also, be careful about entering a lock via this thread because a potential deadlock might occur. Also, Do not remove a handler from within a lock context as the remove blocks until all events have been called. A potential for another deadlock.

See Also