Gmodule
- From: Vandoorselaere Yoann <yoann roco-productions com>
- To: gtk-list redhat com
- Subject: Gmodule
- Date: Thu, 17 Dec 1998 11:24:02 +0100
Hi,
Today i get gtk/glib 1.1.9,
and i try gmodule in a program i'm coding...
basicaly the code look like :
GModule *handle;
void (*init_mod)(struct scan_mod_param *) = NULL;
handle = g_module_open(filename, G_MODULE_BIND_LAZY);
if ( handle == NULL ) {
error_win(g_module_error());
return;
}
g_module_symbol(handle, "init_mod", (gpointer*)init_mod);
if ( init_mod == NULL ) {
error_win(g_module_error());
return;
}
init_mod(mod_param);
g_module_close(handle);
and at run time ->
GModule-CRITICAL **: file gmodule.c: line 369 (g_module_symbol):
assertion `symbol != NULL' failed.
Gtk-CRITICAL **: file gtklabel.c: line 209 (gtk_label_new): assertion
`str != NULL' failed.
Gtk-CRITICAL **: file gtkcontainer.c: line 694 (gtk_container_add):
assertion `widget != NULL' failed.
Gtk-CRITICAL **: file gtkwidget.c: line 1414 (gtk_widget_show):
assertion `widget != NULL' failed.
note that g_module_error doesn't return anything...
anybody experimented that ?
--
-- Yoann
It is well known that M$ products don't call free() after a malloc()
The unix community wishes them "good luck" for their future development...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]