Re: Drawing in one timer
- From: Paul Davis <paul linuxaudiosystems com>
- To: BC Zhu <zhubicen gmail com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Drawing in one timer
- Date: Sat, 06 Dec 2008 17:44:21 +0100
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]