object unref error
- From: "D. Emilio Grimaldo Tunon" <emilio_tunon nl compuware com>
- To: gtk-list redhat com
- Subject: object unref error
- Date: Wed, 02 Dec 1998 17:19:48 +0100
Hi gtk*
I am experiencing a problem with 1.1.5 that didn't occur
in 1.0.5. I have a dialog :O and it has a button :O :O when
I press OK the dialog dissapers but I get this:
Gtk-CRITICAL **: file gtkobject.c: line 1164 (gtk_object_unref):
assertion `object != NULL' failed.
yes, object is not null but what on earth does it mean? why does
it occur in 1.1.5 and not in 1.0.5? The signal connection to the
OK button is as follows:
dlg = gtk_dialog_new();
gtk_signal_connect(GTK_OBJECT(dlg), "destroy",
GTK_SIGNAL_FUNC(gtk_widget_destroyed), &dlg);
: some code omitted for clarity
gtk_signal_connect(GTK_OBJECT(okBtn), "clicked",
(GtkSignalFunc)popupCB, (gpointer)dlg);
I don't know what gtk_widget_destroyed does by the way...
and the callback is:
static void popupCB(GtkWidget *widget, gpointer dlg)
{
gtk_widget_destroy((GtkWidget *)dlg);
}
Any ideas?
--
D. Emilio Grimaldo Tunon Compuware Europe B.V. (Uniface Lab)
Software Engineer Amsterdam, The Netherlands
emilio_tunon@nl.compuware.com Tel. +31 (0)20 3126 516
*** The opinions expressed hereby are mine and not my employer's ***
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]