CvInvokeRedirectError Method (CvInvokeCvErrorCallback, 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)
Syntaxpublic static IntPtr RedirectError(
CvInvokeCvErrorCallback errorHandler,
IntPtr userdata,
IntPtr prevUserdata
)
Public Shared Function RedirectError (
errorHandler As CvInvokeCvErrorCallback,
userdata As IntPtr,
prevUserdata As IntPtr
) As IntPtr
public:
static IntPtr RedirectError(
CvInvokeCvErrorCallback^ errorHandler,
IntPtr userdata,
IntPtr prevUserdata
)
static member RedirectError :
errorHandler : CvInvokeCvErrorCallback *
userdata : IntPtr *
prevUserdata : IntPtr -> IntPtr
Parameters
- errorHandler
- Type: Emgu.CVCvInvokeCvErrorCallback
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:
IntPtrPointer to the old error handler
See Also