[Mono-list] Re: [Gtk-sharp-list] Dos window - when launchappon Win32 OS - how to remove it ?

Francisco T. Martinez martinf at mfconsulting.com
Wed Jul 20 16:48:58 EDT 2005


Kornél Pál wrote:

> First of all I committed a patch as revision 47477 that calls 
> FreeConsole.
> This results in a console window being created by Windows but will 
> disappear
> in no time. As Mono is currently using batch files the console window 
> will
> remain open because cmd.exe waits for the executable to finish.
>
You really should look at MonoLaunch.

There are two versions of this application launcher, one that will allow 
the console to show and one that does not. These executables were 
designed to have system wide visibility (their install location is 
listed in the global PATH). The monoLaunchW.exe for Gtk# apps that you 
may want to launch without the sometimes unsightly Win32 Console window 
and monoLaunchC.exe which is  intended for applications that want to 
have their output to stdout shown (great for debugging purposes).

Currently there are a couple of project that are using this (for example 
http://xbgm.sourceforge.net/).

You can find the Mono Runtime Selector for Windows (which includes the 
two monoluanch executables) at:
http://forge.novell.com/modules/xfcontent/downloads.php/monowin32/Runtime%20selector

Hope this helps.

Paco


More information about the Mono-list mailing list