Re: [Mono-dev] Mono.Addins suppress console window showing
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@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Mono.Addins suppress console window showing
I'll commit the fix. Thanks!!! El dv 04 de 07 de 2008 a les 10:10 +0300, en/na Vladimir Dimitrov va escriure: > Thanks Brad, > > Yes that worked and I don't see any problems with the line that I talked > about being added so if the developer of this library is somewhere around he > could add the change to the main source so everybody can get the fix. > > - Vlad > > -Original Message- > From: Brad Taylor [mailto:[EMAIL PROTECTED] > Sent: Friday, July 04, 2008 5:31 AM > To: Vladimir Dimitrov > Cc: Mono-devel-list@lists.ximian.com > Subject: Re: [Mono-dev] Mono.Addins suppress console window showing > > Hey Vlad, > > > 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: > > > You can also compile Mono.Addins as a "winexe" target to suppress the > console. You'll probably have to rename it to a .dll afterwards if you > compile under Windows. > > Hope this helps, > > -Brad > > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.134 / Virus Database: 270.4.4/1531 - Release Date: 02.7.2008 г. > 19:02 > > ___ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Mono.Addins suppress console window showing
Thanks Brad, Yes that worked and I don't see any problems with the line that I talked about being added so if the developer of this library is somewhere around he could add the change to the main source so everybody can get the fix. - Vlad -Original Message- From: Brad Taylor [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2008 5:31 AM To: Vladimir Dimitrov Cc: Mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Mono.Addins suppress console window showing Hey Vlad, > 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: You can also compile Mono.Addins as a "winexe" target to suppress the console. You'll probably have to rename it to a .dll afterwards if you compile under Windows. Hope this helps, -Brad No virus found in this incoming message. Checked by AVG. Version: 8.0.134 / Virus Database: 270.4.4/1531 - Release Date: 02.7.2008 г. 19:02 ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Mono.Addins suppress console window showing
Hey Vlad, > 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: You can also compile Mono.Addins as a "winexe" target to suppress the console. You'll probably have to rename it to a .dll afterwards if you compile under Windows. Hope this helps, -Brad ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Mono.Addins suppress console window showing
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@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list