Hi Tal,
On Mon, 2012-07-16 at 20:27 +0300, Tal Hadad wrote:
Ok I've explained my self wrong.
The reason I use a pointer to string[] instead of just storing it, is that I
want
the plugins init calls, Gtk.init_check for example, is that I want Gtk to
remove arguments which Gtk familiar with.
] Seg fault when trying to pass args to gtk_init_check.
From: j...@bitron.ch
To: tal...@hotmail.com
CC: vala-list@gnome.org
Date: Wed, 18 Jul 2012 16:38:08 +0200
Hi Tal,
On Mon, 2012-07-16 at 20:27 +0300, Tal Hadad wrote:
Ok I've explained my self wrong.
The reason I use a pointer
I use the libpeas plugin engine, and want to init gtk from the plugin registar
method.
I saved the main() args in static field in my library, and the plugin registar
method looks like this:
public void peas_register_types (ObjectModule module) {
int* argsc;
char*** argsv;
argsv =
Hi Tal,
On Mon, 2012-07-16 at 18:02 +0300, Tal Hadad wrote:
int* argsc;
char*** argsv;
argsv = Max.get_args (out argsc);
If argsv is supposed to represent a string array, Max.get_args() has
been bound incorrectly. Use string[] if you mean string array - or
char** if you have to
() from
the GTK+ bindings shipped with Vala.
I splited up the length pointer and the argsv pointer since I don't know how
to manage this all thing in one pointer in Vala, but I do take it as an
disadvantage if I must to.
Thanks
Tal
Subject: Re: [Vala] Seg fault when trying to pass args