[Mono-dev] Mono.Addins suppress console window showing

Lluis Sanchez Gual lluis at novell.com
Mon Jul 7 13:49:50 EDT 2008


Fixed. Thanks!

El dv 04 de 07 de 2008 a les 01:11 +0300, en/na Vladimir Dimitrov va
escriure:
> Hello guys,
> 
>  
> 
> Recently I started using Mono.Addins in my application and it looks
> very good. But as the application is primary used under windows
> (should be working fine under Linux too) I get an annoying console
> window showing when I run:
> 
>  
> 
>       AddinManager.Initialize ();
> 
>  
> 
> And then another one when I run:
> 
>  
> 
>       AddinManager.Registry.Rebuild (null);
> 
>  
> 
> I noticed in the code that at some point the .dll executes itself in a
> separate process ??!?! So if we add the following line:
> 
>  
> 
> process.StartInfo.CreateNoWindow = true;
> 
>  
> 
> to the file Mono.Addins/Mono.Addins/Database/SetupProcess.cs this
> would suppress the window to show under Window and should not cause
> any other complications.
> 
> Please let me know what you think.
> 
>  
> 
> Best regards,
> 
>  Vladimir Dimitrov
> 
>  
> 
> P.S. I tried compiling my own copy with the change but it didn’t
> worked because when the process was trying to execute the .dll I
> compiled an exception was throws saying this is not a valid windows
> app. Maybe I need to compile it to .exe and just rename it?
> 
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list