guile-user
[Top][All Lists]
Advanced

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

Re: C++ application linked with guile dos not quite


From: Brett Viren
Subject: Re: C++ application linked with guile dos not quite
Date: Wed, 19 Jun 2002 10:09:51 -0400

CDDP 40 - TICE writes:
 > I found another place where it hangs, I never notice it. It apppear also
 > when the user close a figure without leaving drgenius. I have been able
 > to trace back:
 > 
 > Program received signal SIGINT, Interrupt.
 > [Switching to Thread 1024 (LWP 27923)]
 > 0x40802b90 in poll () from /lib/libc.so.6
 > (gdb) backt
 > #0  0x40802b90 in poll () from /lib/libc.so.6
 > #1  0x40622f09 in g_main_is_running () from /usr/lib/libglib-1.2.so.0
 > #2  0x406228bd in g_get_current_time () from /usr/lib/libglib-1.2.so.0
 > #3  0x40622c6c in g_main_run () from /usr/lib/libglib-1.2.so.0
 > #4  0x4035c7f7 in gtk_main () from /usr/lib/libgtk-1.2.so.0
 > #5  0x0805ae30 in main_prog (argc=1, argv=0xbffffc64) at
 > drgenius_main.c:124
 > #6  0x406632d1 in gh_call3 () from /usr/lib/libguile.so.9
 > #7  0x40666a38 in scm_boot_guile () from /usr/lib/libguile.so.9
 > #8  0x4068aa13 in scm_internal_lazy_catch () from /usr/lib/libguile.so.9
 > #9  0x406669e6 in scm_boot_guile () from /usr/lib/libguile.so.9
 > #10 0x406666e4 in scm_boot_guile () from /usr/lib/libguile.so.9
 > #11 0x40663304 in gh_enter () from /usr/lib/libguile.so.9
 > #12 0x0805ae5d in main (argc=1, argv=0xbffffc64) at drgenius_main.c:130

Are you saying that you want the act of closing the window to cause
the application to quit?

If so, it sounds to me like you simply didn't connect to the window's
delete_event.  Eg:

  your_window_object.delete_event.connect(Gtk::Main::quit.slot());

(this is for gtkmm 1.2, 2.0 has slightly different syntax).

-Brett.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]