http://www.emgu.com
The function cvSetMemoryManager sets user-defined memory managment functions (substitutors for malloc and free) that will be called by cvAlloc, cvFree and higher-level functions (e.g. cvCreateImage)

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.2.1777 (2.4.2.1777)

Syntax

C#
public static void cvSetMemoryManager(
	CvInvoke..::..CvAllocFunc allocFunc,
	CvInvoke..::..CvFreeFunc freeFunc,
	IntPtr userdata
)
Visual Basic
Public Shared Sub cvSetMemoryManager ( _
	allocFunc As CvInvoke..::..CvAllocFunc, _
	freeFunc As CvInvoke..::..CvFreeFunc, _
	userdata As IntPtr _
)
Visual C++
public:
static void cvSetMemoryManager(
	CvInvoke..::..CvAllocFunc^ allocFunc, 
	CvInvoke..::..CvFreeFunc^ freeFunc, 
	IntPtr userdata
)

Parameters

allocFunc
Type: Emgu.CV..::..CvInvoke..::..CvAllocFunc
Allocation function
freeFunc
Type: Emgu.CV..::..CvInvoke..::..CvFreeFunc
Deallocation function
userdata
Type: System..::..IntPtr
User data that is transparetly passed to the custom functions

See Also