[Mono-list] shell does not work on Widnwos Vista

Stephen Liu satimis at yahoo.com
Mon Apr 26 12:39:45 EDT 2010


Hi folks,

mono
Windows Vista
Mono for Windows, Gtk#, and XSP

I have a shell.exe file created on mono gui running on Debian 5.0.  It works nicely on Debian 5.0 as well as on another Linux box running Ubuntu 9.10.

$ mono /path/to/shell.exe

starts a small window.  On its top box type "firefox www.mono-project.com" (without quotes") -> Run
starts the official website of mono-project.com


However it can't work on Vista.

Start -> Mono 2.6.3 for Windows -> Mono-2.6.3 Command Prompt

C>mono \path\to\shell.exe

Starts the small window -> on top box, type "firefox www.mono-project.com" (without quote) ->
The said small window closes.  Following are the output on mono-2.6.3 command prompt

Marshaling clicked signal 
Exception in Gtk# callback delegate 
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle 
the exception. 
System.Reflection.TargetInvocationException: Exception has been thrown by the ta 
rget of an invocation. ---> System.ComponentModel.Win32Exception: ApplicationNam 
e='firefox', CommandLine='www.mono-project.com', CurrentDirectory='' 
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartIn 
fo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown 
>:0 
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInf 
o startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown> 
:0 
  at System.Diagnostics.Process.Start () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start () 
  at MainWindow.onButtonRunClicked (System.Object sender, System.EventArgs e) [0 
x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (ob 
ject,object[],System.Exception&) 
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invoke 
Attr, System.Reflection.Binder binder, System.Object[] parameters, System.Global 
ization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace --- 
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invoke 
Attr, System.Reflection.Binder binder, System.Object[] parameters, System.Global 
ization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] par 
ameters) [0x00000] in <filename unknown>:0 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <file 
name unknown>:0 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] 
 in <filename unknown>:0 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename 
 unknown>:0 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args 
) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <file 
name unknown>:0 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, 
UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal 
_data) [0x00000] in <filename unknown>:0 
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean 
is_terminal) 
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, 
UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal 
_data) 
   at Gtk.Application.gtk_main() 
   at Gtk.Application.Run() 
   at shell.MainClass.Main(System.String[] args)

Please advise how to fix the problem.  TIA


B.R.
Stephen Liu 




More information about the Mono-list mailing list