Re: Segmentation fault in GHashTable
- From: Uzytkownik <uzytkownik2 poczta onet pl>
- To: Tim Müller <zen18864 zen co uk>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Segmentation fault in GHashTable
- Date: Fri, 24 Jun 2005 18:59:37 +0200
Dnia 24-06-2005, piÄ o godzinie 17:25 +0100, Tim MÃller napisaÅ(a):
On Friday 24 June 2005 16:59, Uzytkownik wrote:
I've problem with GHashTable:
(...)
self->private->check = g_hash_table_new(g_int_hash, g_int_equal);
g_hash_table_insert(self->private->check, GINT_TO_POINTER(3), "%%(.*)");
(...)
g_int_hash() expects a _pointer_ to an int, not an int (see API reference). If
you use g_direct_hash() and g_direct_equal() instead, it should work.
Cheers
-Tim
I response to both.
Thanks - it's work.
Regards.
--
Linux user: #376500 (patrz http://counter.li.org/)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]