Re: Memory Usage

On Thu, 2006-10-26 at 02:38 -0700, Andre Messerschmidt wrote:
> David Neèas (Yeti) <yeti physics muni cz> wrote:
>         I doubt creation and desctruction of windows can be done
>         safely in a signal handler while Gtk+ main loop is running
>         and the program can be anywhere in Gtk+ code at the time it
>         is delivered.
> I changed my code to destroy the window by using
> g_signal_emit_by_name(window,"destroy"), but that did not change
> anything.

You must not do anything in a unix signal handler but setting
flags or calling a *very* limited set of functions.

Calling GTK functions is a reliable way to break your application.

Besides, you don't need this signal handler. You almost *never*
need signal handlers, generally.


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