Re: Can I turn off Xforms messages ?

Steve Lamont (
Sat, 21 Dec 96 10:29:29 PST

To subscribers of the xforms list from (Steve Lamont) :

> > > "Failed to share colors. Using private colormap"
> > >
> > > Is there a way to turn off this type of messages ?

This is a hack but it should work:

#include <stdarg.h>


void my_own_error_handler(const char *func, const char *fmt,...)


/* Put anything you wish here. */


void (*whereError(int something,
int level,
const char *string,
int some_int))(const char *func, const char *fmt,...)

return my_own_error_handler;


Unfortunately, this shuts everything off. You can be more clever
about processing the error level and return different handlers for
different errors if you wish.

my_own_error_handler can be any name you want, whereError shadows an
internal library routine.