Problem unreferencing object
- From: Rafael Peregrino da Silva <rafael bmt4 kf tu-berlin de>
- To: gtk-list redhat com
- Subject: Problem unreferencing object
- Date: Tue, 14 Mar 2000 12:29:58 +0100 (NFT)
Hi ALL :-)
Thanks for all that have helped me on my last thread. The program runs
"almost" OK...
The "almost" in the last phrase is there cause, by destroying the main
(and by now unique) window with
int main(int argc, char *argv[])
{
...
gtk_signal_connect (GTK_OBJECT (window1), "destroy",
GTK_SIGNAL_FUNC (quit), NULL);
...
}
and
void
quit ()
{
gtk_main_quit();
}
I receive the following message error:
Gtk-WARNING **: invalid class type `(unknown)' in cast to `GtkObject'
Gtk-CRITICAL **: file gtkobject.c: line 1172 (gtk_object_unref):
assertion `GTK_IS_OBJECT (object)' failed.
It seems to me that gtk_main_quit () wants to unreference an object, that
was already unreferenced anywhere in program. But I don't know how to
workaround this. Any hints?
Thanks in advance...
Cheers,
Rafael (8-)
rafael@bmt4.kf.TU-Berlin.DE
Take a look at our site!
http://privat.schlund.de/bsos/
______________________________
"Unshakable faith is only that
which can meet reason face to
face in every Human epoch"
Allan Kardec
(1804-1869)
______________________________
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]