On 5/13/11 5:33 AM, MAYANK PRASAD wrote:
[...]
>>
>>>> What will be error_handler_hook
>>>>
>>> /"error_handler_hook"/ is a function pointer which points to a error
>>> handling routine. In case of embedded server, it was being assigned to
>>> "/my_message_sql/" directly, which is a server error handling routine
>>> and therefore we saw the issue reported. I have added a wrapper error
>>> handling routine (/embedded_error_handler/) which will take decision to
>>> call /client/server/ error handler accordingly. And /error_handler_hook/
>>> is assigned to this wrapper.
>>
>> What will be client_error_handler_hook pointing to?
> client_error_handler will be pointing to /*my_message_no_curses*/.
Use it directly then. No need for another pointer indirection.
Regards,
Davi