g_hash_insert/g_hash_lookup woes
- From: tile primenet com
- To: gtk-list redhat com
- Subject: g_hash_insert/g_hash_lookup woes
- Date: Sat, 12 Dec 1998 14:08:50 -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?
--
tile
tile@primenet.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]