Click or drag to resize

CvInvokeRedirectError Method (CvInvokeCvErrorCallback, IntPtr, IntPtr)
Sets a new error handler that can be one of standard handlers or a custom handler that has the certain interface. The handler takes the same parameters as cvError function. If the handler returns non-zero value, the program is terminated, otherwise, it continues. The error handler may check the current error mode with cvGetErrMode to make a decision.

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: (
public static IntPtr RedirectError(
	CvInvokeCvErrorCallback errorHandler,
	IntPtr userdata,
	IntPtr prevUserdata


Type: Emgu.CVCvInvokeCvErrorCallback
The new error handler
Type: SystemIntPtr
Arbitrary pointer that is transparently passed to the error handler.
Type: SystemIntPtr
Pointer to the previously assigned user data pointer.

Return Value

Type: IntPtr
Pointer to the old error handler
See Also