Click or drag to resize

CvInvokeRedirectError Method (IntPtr, IntPtr, IntPtr)

http://www.emgu.com
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: 4.1.1.3497 (4.1.1.3497)
Syntax
public static IntPtr RedirectError(
	IntPtr errorHandler,
	IntPtr userdata,
	IntPtr prevUserdata
)

Parameters

errorHandler
Type: SystemIntPtr
Pointer to the new error handler
userdata
Type: SystemIntPtr
Arbitrary pointer that is transparently passed to the error handler.
prevUserdata
Type: SystemIntPtr
Pointer to the previously assigned user data pointer.

Return Value

Type: IntPtr
Pointer to the old error handler
See Also