GrSetErrorHandler()

Name

GrSetErrorHandler() -- Setup an error handler

Synopsis

GR_FNCALLBACKEVENT GrSetErrorHandler ( GR_FNCALLBACKEVENT fncb );

Description

This function allows you to specify an error handing function, for all errors that the server sends to the client. If an error occurs the specified error handler is called with an error event. If a NULL function pointer is specified, then errors will be sent through the nano-X event queue rather than through an error handler callback function.

Parameters

TypeNameDescription
GR_FNCALLBACKEVENTfncbA pointer to the error handler function or NULL to send errors through the event queue.

Returns

A pointer to the previous error handler function.

See Also

GrDefaultErrorHandler(), GR_ERROR, GR_EVENT_ERROR.