Re: [gtk-list] glib g_hash_*() using strings as key



>                 g_hash_table_insert(table, pevent->evt_name, pevent);

My first guess would be: somewhere in the code the value of
pevent->evt_name is being changed, after the g_hash_table_insert call
occurs.  This would cause the key to be stored under the wrong hash slot.

It won't fix your problem, but you might consider using
strdup(pevent->evt_name) as your key as a simple test to see if the
symptom changes.

(Sorry about the late reply, been busy.)
Jonathan.

------------------------------------------------------------------------
Jonathan Mayer, Developer                          Cobalt Networks, Inc.
-------------------------- jmayer@cobalt.com ---------------------------
GPG key fingerprint = FC71 625A 819D BA19 CE4F  F4E6 4EE4 CAF6 A058 55A5





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]