Re: Drawing in one timer



On Sat, 2008-12-06 at 23:53 +0800, BC Zhu wrote:
> When i drawing something in one timer, error occoured.
> glibmm:error: Unhandled exception(type std::exception) in signal handler.
> I used following code to reproduce the error.
> I am wondering about the reason of this error.Could someone help me?

you don't draw in a timer. you also should not attempt to cache cairo
contexts. if you want to draw, call Widget::queue_draw() which will
eventually call your expose event handler. create a new cairo context
there and draw with it and then release it.







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