Re: What does this error mean?

Murray Cumming wrote:
> gtkmm doesn't allow signal handlers to throw exceptions, so it warns you
> when this happens. This is because it would have to pass through a C
> function call, and they can't throw exceptions. It's a good idea to catch
> your exceptions earlier anyway.

One small correction: you can register a custom handler with
Glib::add_exception_handler().  Useful for printing some diagnostic messages
from exceptions etc.  It is probably meaningless to handle std::bad_alloc
here, but if you have a custom exception type...


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]