Problems with GHashTable
- From: tile primenet com
- To: gtk-list redhat com
- Subject: Problems with GHashTable
- Date: Sun, 13 Dec 1998 16:42:17 -0700 (MST)
After initializing a GHashTable variable, I try to insert a key/value pair
which are gchar pointers using g_hash_insert (). It seems to insert fine, but
when I try to look the value up using _hash_lookup (), I get NULL. I tried
g_strdup'ing the pointers; it still doesn't work. It _does_ work when I put in
constant strings. Can anyone explain why this happens and how I can fix it?
I'm using glib 1.1.6 and gtk+ 1.1.6. Any help would be greatly appreciated.
--
tile@primenet.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]