Re: Memory Usage
- From: Michael Natterer <mitch gimp org>
- To: Andre Messerschmidt <a_messerschmidt yahoo com>
- Cc: gtk-list gnome org
- Subject: Re: Memory Usage
- Date: Thu, 26 Oct 2006 12:05:17 +0200
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.
ciao,
--mitch
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]