Re: glib 1.3 & GArray
- From: Kristian Rietveld <kris gtk org>
- To: Christian Nitschke <christian nitschke gmx net>
- Cc: gtk-app-devel-list gnome org, GTK Development list <gtk-devel-list gnome org>
- Subject: Re: glib 1.3 & GArray
- Date: 19 Nov 2002 16:10:09 +0100
On Tue, 2002-11-19 at 15:42, Christian Nitschke wrote:
Hello,
theres a problem with the GArray, I can not define, but I need a solution:
1. 2 different GArrays are defined:
GArray * array1,array2;
Note that GArray * array1, array2; is equivalent with
GArray *array1;
GArray array2;
and *not* with
GArray *array1;
GArray *array2;
which is probably what you want. Solution, replace your line with
"GArray *array1, *array2;"
-Kris
(Note that gtk-devel-list is *only* for the development of GTK+ itself
and not for programming questions which should go to
gtk-app-devel-list).
2. they are initialized with
array1=g_array_new(TRUE,TRUE,sizeof(guint32));
array2=g_array_new(TRUE,TRUE,sizeof(guint32));
3. I'm filling array1 with elements and its correct (tested)
4. I'm filling array2 and this elements are concatenated to array1
(actually array1 and array2 are the same, have the same pointer(!!))
If array1 is inititialized and filled -> correct
and then array2 is initialized, the adress of array1 ist overwritten by the
one of array2 and so array1->len==0
Can anyone help me with this problem, cause its very important.
Thanx a lot for all suggestions!
Best regards
Chris
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]