[Mono-dev] Mono Debugging Testing
I have C# application running under Mono with Linux on ARM Target. I would like to know how to do following on target. 1) Debugging Mono application code on target. (Ex : Using gdb server/client) 2) How to take stack trace. (Ex : Using core dump in Linux to get stack trace after crash) 3) How to find any memory leak. (Ex : Using valgrind in Linux for memory Leak) 4) How to run test suit on target. I don’t get binary generated after mono build. Note : All Example in bracket after point 1,2,3 is what I know used when running C code based application on target. Thanks ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Mono for Windows test build
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone Following on from lots of recent discussion, I've got the first test build of Mono for Windows which I'd describe as usable. This is based on the mono-3.12.0-branch branch on github. Please report success or failure with it, as I'm not a Windows expert. Especially interested in success/failure from Windows embedders. I'll get the scripts involved in building this stuff (so you can try it locally, developery types) added to github.com/mono/release.git by the end of tomorrow. https://drive.google.com/open?id=0Bz6-k9ELOQf3YTE1RHV3Y0dNaFUauthuser=0 == Headlines == * Runtime compiled with Microsoft Visual Studio 2013, for extra speed * SGen by default * Includes Gtk#, F#, IronPython, Boo, IronRuby (as per Mono MDK for Mac) * .lib files for libmono (Boehm) and libmonosgen (SGen) * Installs side-by-side with old 3.2.3 installer == Known Issues == * No policy files for Gtk# (but who has Gtk#2.10 apps these days?) * Works from cmd.exe or Cygwin, but not MSYS * FSharp does not run from cmd.exe, fails with a timezone error (works in Cygwin) * Xamarin Studio does not run from cmd.exe with mono XamarinStudio.exe (works in Cygwin) -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQEcBAEBAgAGBQJUfKkPAAoJEMkPnLkOH60MRjUH/23JvJz6XeEnp8SW1t0IdWLV Lkpr1I5KklVlBsw9RaTLoXozIDwrCRf1npMzZI85Q3UUtMXYmzf3V+VM8mbhC0hG z1gJY1UXTVVoz1TSGHVQ04l4Kldq0NYJI6h6z2HzrWGq2ball5voM9PqrdcvLKD9 +iaVGmZQ3u7DbyDO2417wfRbZkebDuastDwKLtpk8Z5L7Hq2RBI8t19elPKS1Cu2 cqN8PQoXpyylUuxnE4hfkLS09bMutaqGRPNE5+SnwrHqsbAHF6szv4z+iAFQa4j5 r81N+UhF4t85xZlHGke6w4PC2kjCEFVCj/Qp2Chd2VA1r4WMyk0tphuROvIwpwM= =SumB -END PGP SIGNATURE- ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Mono for Windows test build
Hey Jo, I tried it and it installed fine for me. However, the version is currently set to 3.12.1 in https://github.com/directhex/newbuilder/blob/master/resources/build.bat and https://github.com/directhex/newbuilder/blob/master/resources/bat/setmonopath.bat, I guess we should change that to 3.12.0. Btw. build.bat could be integrated into the bash files quite easily I think (for consistency), it just invokes msbuild. The BCL assemblies are taken from the 3.10 MDK installer as far as I can see? -- Alex Date: Mon, 1 Dec 2014 17:44:51 + From: direct...@apebox.org To: mono-devel-list@lists.ximian.com Subject: [Mono-dev] Mono for Windows test build -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone Following on from lots of recent discussion, I've got the first test build of Mono for Windows which I'd describe as usable. This is based on the mono-3.12.0-branch branch on github. Please report success or failure with it, as I'm not a Windows expert. Especially interested in success/failure from Windows embedders. I'll get the scripts involved in building this stuff (so you can try it locally, developery types) added to github.com/mono/release.git by the end of tomorrow. https://drive.google.com/open?id=0Bz6-k9ELOQf3YTE1RHV3Y0dNaFUauthuser=0 == Headlines == * Runtime compiled with Microsoft Visual Studio 2013, for extra speed * SGen by default * Includes Gtk#, F#, IronPython, Boo, IronRuby (as per Mono MDK for Mac) * .lib files for libmono (Boehm) and libmonosgen (SGen) * Installs side-by-side with old 3.2.3 installer == Known Issues == * No policy files for Gtk# (but who has Gtk#2.10 apps these days?) * Works from cmd.exe or Cygwin, but not MSYS * FSharp does not run from cmd.exe, fails with a timezone error (works in Cygwin) * Xamarin Studio does not run from cmd.exe with mono XamarinStudio.exe (works in Cygwin) -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQEcBAEBAgAGBQJUfKkPAAoJEMkPnLkOH60MRjUH/23JvJz6XeEnp8SW1t0IdWLV Lkpr1I5KklVlBsw9RaTLoXozIDwrCRf1npMzZI85Q3UUtMXYmzf3V+VM8mbhC0hG z1gJY1UXTVVoz1TSGHVQ04l4Kldq0NYJI6h6z2HzrWGq2ball5voM9PqrdcvLKD9 +iaVGmZQ3u7DbyDO2417wfRbZkebDuastDwKLtpk8Z5L7Hq2RBI8t19elPKS1Cu2 cqN8PQoXpyylUuxnE4hfkLS09bMutaqGRPNE5+SnwrHqsbAHF6szv4z+iAFQa4j5 r81N+UhF4t85xZlHGke6w4PC2kjCEFVCj/Qp2Chd2VA1r4WMyk0tphuROvIwpwM= =SumB -END PGP SIGNATURE- ___ 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
[Mono-list] Alternative Toolkits for cross-platform development
A couple of toolkits I have never heard about before today. They are developed for Python. Kyvy - Windows, Linux Mac and iOS/Android. Based on OpenGL http://kivy.org/ PyGUI - Windows, Linux and Mac http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Running mono-service in linux as non-root
I need to run a .net C# application (developed on a Windows system) as a service/daemon on an embedded system with a minimal Ubuntu installation (no X, no servers except ssh, only relevant software). I created an `/etc/init.d` script containing the line mono-service my-.net-app.exe service and this worked well. There is also an option to start the application interactively (for debugging purposes) with mono my-.net-app.exe interactive The last argument is an argument for the .NET application telling it if it's running as service. This was implemented roughly this way: private static void Main(string[] args){ if(args.Any() args[0] != null args[0] == service){ ServiceBase.Run(new[] {(ServiceBase) new MyService()}); }else{ try{ Console.Write(starting app); if(StartWork()){ Console.Write(press any key to exit); Console.ReadKey(); }else{ Console.WriteLine(starting app failed); } } // end try finally{ StopWork(); Console.WriteLine(finished app); } } // end else ... } // end Main public class MyService : ServiceBase{ static private Thread _worker; protected override void OnStart(string[] args){ _worker = new Thread(() = Program.StartWork(asService: true)); // this asService tells StartWork to not produce console output _worker.Start(); } protected override void OnStop(){ Program.StopWork(); _worker.Join(1000); } } The purpose of this implementation was to allow the application to die gracefully (i.e. to execute `StopWork()`) upon sending `SIGTERM` on the linux machine. For security reasons, I need to be able to run the service as non-root. I created a new user and made it owner of the directories where the application writes its log files and added it to various groups to give it access to required device files. Then, root would start the application as sudo -u newuser mono-service my-.net-app.exe service or sudo -u newuser mono my-.net-app.exe interactive The second option with `mono` works well, but the first one with `mono-service` doesn't (see error message below). Since it works with `mono`, I'm confident that the user `newuser` has appropriate rights to access all relevant files and devices. I wonder whether `mono-service` has been conceived as a root-only application. I could also live with using the `mono` option and suppressing the console output, like this: private static void Main(string[] args){ try{ Console.Write(starting app); if(StartWork(consoleoutput)){ // true or false depending on whether the service argument was given Console.Write(press any key to exit); Console.ReadKey(); }else{ Console.WriteLine(starting app failed); } } // end try finally{ StopWork(); Console.WriteLine(finished app); } ... } // end Main but then, when I kill the service (i.e. send SIGTERM to the `mono` process), it stops the .net application immediately without allowing it to execute the `finally` block. **Finally, my question** is whether someone has an idea why `mono-service` is failing when not started as root. The error message is the following and, as I mentioned before, it doesn't exist when I use `mono` instead of `mono-service`. ERROR Program [4] [15:03:06.795 01/12/14] Error in Main! FluentNHibernate.Cfg.FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail. --- NHibernate.HibernateException: Could not create the driver from SAFEmine.DataStore.Database.MonoSqliteDriver, SAFEmine.DataStore, Version=1.3.0.6, Culture=neutral, PublicKeyToken=null. --- System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --- NHibernate.HibernateException: The IDbCommand and IDbConnection implementation in the assembly Mono.Data.Sqlite could not be found. Ensure that the assembly Mono.Data.Sqlite is located in the application directory or in the Global Assembly Cache. If the assembly is in the GAC, use qualifyAssembly/ element in the application configuration file to specify the full name of the assembly. at NHibernate.Driver.ReflectionBasedDriver..ctor (System.String providerInvariantName, System.String driverAssemblyName, System.String connectionTypeName, System.String commandTypeName) [0x0] in filename unknown:0 at NHibernate.Driver.ReflectionBasedDriver..ctor (System.String driverAssemblyName, System.String connectionTypeName, System.String commandTypeName) [0x0] in filename unknown:0 at SAFEmine.DataStore.Database.MonoSqliteDriver..ctor () [0x0] in filename unknown:0 at (wrapper managed-to-native)
[Mono-list] mvc and razorgenerator
Hi, I tried the latest Xamarin Studio with my MVC 4 project, and this time it worked out of the box! I can start the application and its runs fine in combination with MySql on my Mac. The production website already worked on Mono, but from the IDE it was a problem before. This time the nuget stuff didn’t update directly to the latest versions, and thats perfect! There is only one thing I ran into. I use RazorGenerator to compile the views at compile time. This way I don’t even supply the cshtml files in the production site. Does anyone has any idea if its possible to use RazorGenerator in combination with Xamarin Studio (or MonoDevelop). In Visual Studio its an extension that uses a custom tool to generate the cs files. Cheers Peter ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] mvc and razorgenerator
Hi Peter, If you let us know what the error is, maybe I can have a look. It maybe that it will be fixed as part of some other work we're doing. Thanks Martin On 1 Dec 2014 21:51, Peter Hagen pe...@willow-media.nl wrote: Hi, I tried the latest Xamarin Studio with my MVC 4 project, and this time it worked out of the box! I can start the application and its runs fine in combination with MySql on my Mac. The production website already worked on Mono, but from the IDE it was a problem before. This time the nuget stuff didn’t update directly to the latest versions, and thats perfect! There is only one thing I ran into. I use RazorGenerator to compile the views at compile time. This way I don’t even supply the cshtml files in the production site. Does anyone has any idea if its possible to use RazorGenerator in combination with Xamarin Studio (or MonoDevelop). In Visual Studio its an extension that uses a custom tool to generate the cs files. Cheers Peter ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list