[Mono-dev] Embedded API: mono_array_element_size issue
The following raises so I presume that I have used it incorrectly: MonoClass *arrayClass = mono_get_byte_class(); int32_t elementSize = mono_array_element_size(arrayClass); * Assertion at class.c:8201, condition `ac-rank' not met The entire method is: - (MonoArray *)monoArray { // get mono array info MonoClass *arrayClass = mono_get_byte_class(); int32_t elementSize = mono_array_element_size(arrayClass); //int32_t elementSize = sizeof(char); // workaround // assign the mono array uintptr_t byteLength = [self length]; MonoArray *monoArray = mono_array_new(mono_domain_get(), arrayClass, byteLength); // copy the NSData bytes to the Mono array char *buffer = mono_array_addr_with_size(monoArray, elementSize, 0); [self getBytes:buffer length:[self length]]; return(monoArray); } Jonathan ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Request for status of Entity framework on Mono
Hi I have done some experimenting with the latest MS Entity 6 beta and the Devart SQLite data provider. I was able to query quite a substantial pre-existing data set when running on Mono. So it is doable. Jonathan On 19 Aug 2013, at 00:17, Martin Thwaites monofo...@my2cents.co.uk wrote: Thanks Daniel. I'll have a look at those, but Ideally I wanted to look at Entity due to some work projects that are currently using it (pure windows .NET and VS). The plan was to get the basics down in some hobby apps. I'm currently using NHibernate, and it works well, entity does look like fun to play with... I'm a very ooo shiny kinda guy. I did see a big merge happen in the last few days by Marek, so I was hoping that might be the start of something... Thanks, Martin On 18 August 2013 23:45, Daniel Lo Nigro li...@dan.cx wrote: There's no official release of Entity Framework 6 yet, the latest release is the first beta release. Additionally, I don't think all the supporting architecture is fully working in Mono yet. You could try it and see, although I'd use Entity Framework from NuGet as the one bundled with Mono is out of date. If you only need basic features, I'd suggest looking at a micro ORM like ServiceStack ORMLite, Dapper, or Massive. These are all very basic facades over raw ADO.NET, usually providing only basic ORM. I use ORMLite with Mono and it works quite well. On Mon, Aug 19, 2013 at 7:16 AM, Martin Thwaites monofo...@my2cents.co.uk wrote: I'm starting a new project from scratch soon, and I'm selecting some components. I do everything in mono.. you'll be pleased to hear ;) For ORM, I'm looking to utilise EntityFramework, so I'm wondering where the development is at, is anyone working on it, etc. I don't think I'll be using any advanced features, just the basics. So, are the basics in enough of a usable state to put into a production application? I'm not seeing any stabilisation branches/tags in the repository, so can I assume that it's still in flux and should be avoided for the timebeing? I'll obviously give it a go and see, but just wondering if anyone has any experiences? Thanks in advance. Martin ___ 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-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] objc-sharp licence query
Hi I wouldn't put myself to too much trouble over this now. I spent some time looking at the bridge but ultimately decided to fork and extend Dumbarton with a code generator instead. The fork adopts the existing Dumbarton LGPL licence. see: https://github.com/ThesaurusSoftware/Dubrovnik Jonathan On 18 Aug 2013, at 03:26, Miguel de Icaza mig...@xamarin.com wrote: Hey guys, Bummer, digging the original license will be tricky. I suspect it was either LGPL 2 or MIT X11, but we will need to track the actual history to find out where it came from, and find out what license it had. On Sat, Aug 17, 2013 at 9:46 AM, Xamarin Support supp...@xamarin.com wrote: Please type your reply at the top of the email... Joseph Hill AUG 17, 2013 | 09:46AM EDT Hello Jonathan Sorry for the slow response. I think probably Miguel (cc'ed) would be the best person to tell you what your options are here. Joseph -- Please, rate my reply: http://nicereply.com/xamarin/2864367/37847 jonat...@mugginsoft.com JUN 14, 2013 | 08:17AM EDT Original message Hi Xamarin I am interested in making use of/modernising objc-sharp but there is no licence file in the repo and nothing in the headers/source. Is there a default mono licence that covers components that are not explicitly licensed? https://github.com/mono/old-code/tree/master/objc-sharp Am I correct in thinking that objc-sharp is th sonly realistic way to bridge ObjC - Mono. I don't need the reverse functionality as offered by MonoMac etc. Regards Jonathan Mitchell Mugginsoft LLP For your reference this is Case #: 37847 Support powered by Assistly [[9aba28f74a838112b57b4057870229b67bda1fae-123355253]] ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Request for status of Entity framework on Mono
On 20 Aug 2013, at 21:52, Martin Thwaites monofo...@my2cents.co.uk wrote: That's great news, but I can't purchase the licence. It's promising news that it works with that, as it's a sign that I may be able to get it working with Npgsql. I am sure that once EF6 settles down some of the opens source data adapters like system.data.sqlite will be upgraded accordingly. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list