Callbacks from an idle function
- From: Vivien Malerba <vmalerba gmail com>
- To: Gtk App Devel list <gtk-app-devel-list gnome org>
- Subject: Callbacks from an idle function
- Date: Fri, 8 Apr 2005 16:22:59 +0200
Hi!
I would appreciate having a bit of help concerning a strange problem.
In an application I'm writing (Mergeant), I have enabled
multi-threading (g_thread_init() and gtk_threads_init()), but I'm
using it with one thread only.
I have an idle function callback from which I create:
* one custom object which sends a signal about some auto-generated events
* a custom widget which is connected to this signal and updates its display
From the same idle function, I make the custom object emit the signals
and the custom widget is updated correctly. Everything is OK.
However, still from the same function, I then destroy the custom
widget, and the whole application locks. A backtrace from gdb attached
to the locked application gives:
(gdb) bt
#0 0x00ad37a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x00d3913e in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0
#2 0x00d35d9b in _L_mutex_lock_32 () from /lib/tls/libpthread.so.0
#3 0x00000000 in ?? ()
The strange thing is that if I don't create the custom widget, then
everything runs OK.
Any idea how to solve this problem?
Thanks a lot,
Vivien
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]