Re: [Vala] internal error: duplicating string[] instances not yet supported
- From: gege2061 <gege2061 redaction-developpez com>
- To: "Vala ML" <vala-list gnome org>
- Subject: Re: [Vala] internal error: duplicating string[] instances not yet supported
- Date: Sat, 31 May 2008 21:19:41 +0200
Thank, but I do not see where I have ownership transfer:
public void add ()
{
string[] fields = new string[this.nb_colonne];
if (this.show (ref fields))
{
Gtk.TreeIter iter;
Gtk.ListStore list_store = (Gtk.ListStore)this.tree_view.get_model ();
list_store.append (out iter);
for (int i = 0; i < this.nb_colonne; i++)
{
list_store.set (iter, i, fields[i]);
}
this.update_file ();
}
}
2008/5/31 Jürg Billeter <j bitron ch>:
On Sat, 2008-05-31 at 20:26 +0200, gege2061 wrote:
I have this strange error with this very simple code:
src/preferences-dlg.vala:446.5-446.12: error: internal error:
duplicating string[] instances not yet supported
string[] fields = new string[3];
^^^^^^^^
The error is not on this line but further down when assigning to the
`fields' variable. The misleading error message is bug 535489[1].
Jürg
[1] http://bugzilla.gnome.org/show_bug.cgi?id=535849
--
Nicolas Joseph
Responsable de la rubrique GTK+ de developpez.com /
In charge of the GTK+ section on developpez.com
http://nicolasj.developpez.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]