中国Linux公社论坛's Archiver

cr4315 发表于 2010-7-20 17:21

gtk运行时出现这样的错误时怎么回事?

程序在编译的时候没有出错,但是运行时却是出现这样的错误信息:
(xxx:3676):Gtk-CRITICAL **:gtk_window_set_position:essertion 'GTK_IS_WINDOW(window)' failed
(xxx:3676):Gtk-CRITICAL **:gtk_image_set_from_pixbuf:assertion 'GTK_IS_IMAGE(image)' failed
(xxx:3676):GLib-GObject-WARING **: invalid(NULL) pointer instance
( xxx:3676):GLib-GObject-CRITICAL **:g_signal_connect_data: assertion 'GTK_TYPE_CHECK_INSTANCE(instance)' failed
(xxx:3676):GLib-GObject-WARING **: invalid(NULL) pointer instance
( xxx:3676):GLib-GObject-CRITICAL **:g_signal_connect_data: assertion 'GTK_TYPE_CHECK_INSTANCE(instance)' failed
(xxx:3676):GLib-GObject-WARING **: invalid(NULL) pointer instance
( xxx:3676):GLib-GObject-CRITICAL **:g_signal_connect_data: assertion 'GTK_TYPE_CHECK_INSTANCE(instance)' failed
(xxx:3676):GLib-GObject-WARING **: invalid(NULL) pointer instance
( xxx:3676):GLib-GObject-CRITICAL **:g_signal_connect_data: assertion 'GTK_TYPE_CHECK_INSTANCE(instance)' failed
(xxx:3676):GLib-GObject-WARING **: invalid(NULL) pointer instance
( xxx:3676):GLib-GObject-CRITICAL **:g_signal_connect_data: assertion 'GTK_TYPE_CHECK_INSTANCE(instance)' failed
( xxx:3676):Gtk-CRITICAL **:gtk_widget_show_all: assertion 'GTK_IS_WIDGET(widget)' failed
请问这是怎么回事,是不是库连接时出了问题?我在suse 里面已经将gtk,x11,wxwidget等都已经安装了。
请各位指导下小弟,小弟先谢了!
(附件为错误截图)

默难 发表于 2011-2-13 22:26

是你代码写错了
GTK有运行时的类型检查,你肯定是某个参数传错了。

页: [1]

Powered by Discuz! Archiver 6.1.0F  © 2001-2007 Comsenz Inc.