I believe that you have to use g_value_unset() on your GValue before you 
can use g_value_init() again.
http://library.gnome.org/devel/gobject/stable/gobject-Generic-values.html#g-value-unset
-Tanner

Daniel Kasak wrote:
> On Mon, 2008-05-19 at 00:10 -0400, muppet wrote:
>
>   
>> I can speak only about the crash and the code; as for whether this is  
>> the right way to solve the bug, i can't really say.
>>     
>
> Yeah I realise it's not ideal, but it works ( now ).
>
> Thanks for the advise on GValue and stuff :)
>
> The code you posted works, but I'm getting *lots* of warnings:
>
> GLib-GObject-WARNING **: gvalue.c:89: cannot initialize GValue with type
> `gchararray', the value has already been initialized as `gchararray'
> at .posting/posting.pl line 364.
>
> I assume this is from calling:
>    g_value_init (&value, G_TYPE_STRING);
>
> inside the loop. Can you only do this once? I'll try moving
> the g_value_init() outside the loop.
>
> I need some faster PCs to compile on ...
>
> Thanks again for your help :)
>
> --
> Daniel Kasak
> IT Developer
> NUS Consulting Group
> Level 5, 77 Pacific Highway
> North Sydney, NSW, Australia 2060
> T: (+61) 2 9922-7676 / F: (+61) 2
> 9922 7989
> email: [EMAIL PROTECTED]
> website:
> http://www.nusconsulting.com.au
>
>
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
>   

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to