Redrawing drawing area from main loop timer
- From: Jerome Blondel <jeromeblondel yahoo fr>
- To: gtk-app-devel-list gnome org
- Subject: Redrawing drawing area from main loop timer
- Date: Thu, 12 Apr 2007 19:03:16 +0200
Hi
I'm trying to redraw periodically a drawing area from the main loop
using g_timer_add. In the GSourceFunc i tried to emit a signal to
my drawing area :
gboolean increment_angle(gpointer darea)
{
angle += M_PI/100;
g_signal_emit_by_name(GTK_WIDGET(darea), "expose-event", &angle);
return TRUE;
}
The following error occurs :
(gdb) run
Starting program: /home/jerome/src/cairo/draw/draw
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1217390912 (LWP 5075)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1217390912 (LWP 5075)]
0xb79e9650 in g_slice_alloc () from /usr/lib/libglib-2.0.so.0
(gdb) quit
Problem with threads ?
Can someone help me ?
Thanks
Jerome
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]