Environment.GetCommandLineArgs is an internal call and my assumption was
that the internal call is not registered to a C function. But now I see
that I can call Environment.GetCommandLineArgs.
I checked it out and Environment.GetCommandLineArgs returns null if you
embed mono into your application.
On 03/11/13 15:58, Vardar Sahin wrote:
Environment.GetCommandLineArgs is an internal call and my assumption was
that the internal call is not registered to a C function. But now I see
that I can call Environment.GetCommandLineArgs.
I checked it out and Environment.GetCommandLineArgs returns null
I think that GLib.Global.ProgramName has to be set to a value.I am not sure
what will happen when it is not set.
In case args == null and we should set GLib.Global.ProgramName to a static
value like this.
var args = Environment.GetCommandLineArgs ();
if (args != null args.Length 0){
Why do you assume that there is a bad consequence if g_set_prgname() is
not called? Please test it, and if you confirm any bad behaviour, come
back with more info.
On 03/11/13 20:50, Vardar Sahin wrote:
I think that GLib.Global.ProgramName has to be set to a value.I am not
sure what will
Hey monodev fellows,
first of all I appreciate all your hard work and want to contribute this to
the mono project.
Right now it is not possible to use GTK# with an application which embeds
mono. GTK# works just fine if you use mono as a standalone application eg
mono.exe.
The reason why GTK#
On 02/11/13 21:42, Vardar Sahin wrote:
Hey monodev fellows,
first of all I appreciate all your hard work and want to contribute this
to the mono project.
Right now it is not possible to use GTK# with an application which
embeds mono. GTK# works just fine if you use mono as a standalone
Hey Andrés,
thanks for the quick replay. I am not sure if this will fix the problem. I
think the problem is that you can not call Environment.GetCommandLineArgs()
when you embed mono.
Environment.GetCommandLineArgs() is an internal call and it seems like it
is not registered when you embed mono.
Being not registered means that accessing GetCommandLineArgs throws an
exception? If yes, what kind?
On 02/11/13 22:10, Vardar Sahin wrote:
Hey Andrés,
thanks for the quick replay. I am not sure if this will fix the problem.
I think the problem is that you can not call