TSparseMtx.Pin Method

void Pin

Pin down internal data structures for GC.

Result: stored in self (calling object)

Remarks:

Call this function to pin down internal arrays before calling PValues functions, which return pointers to elements. Failure to unpin the object before its release will lead to memory leaks. The method does nothing, if the internal memory allocated is from object cache, which is always pinned (but limited in size).