[Mono-list] Embedded api thread usage

2016-05-30 Thread Jonathan Mitchell
I call my managed code via the embedded API and have hit a lock issue,. The following statement gets called from my Objective C app’a main thread and from a managed worker thread. Tracing seems to suggest that after the managed worker thread has accessed the lock the main C thread always fails

Re: [Mono-dev] Embedded API: .ctor method signature query [mono]

2016-03-04 Thread Jonathan Mitchell
> Robert > > > On 03.03.2016 19:28, Jonathan Mitchell wrote: >> HI Robert >> >> Thanks for that. >> I think you are right. >> I call hundreds of methods that take Obj`1 arguments with out issue but I >> see that I have had to construct a number of helper m

[Mono-dev] Embedded API: delegate type building

2016-03-04 Thread Jonathan Mitchell
Hi At present I use an InternalCalls for my callbacks and conditional compilation (see end) in our cross platform code In this we assign a Func directly to an extern static string FilePathCallback(string EmployerName); In future I would like to support calling methods such as

Re: [Mono-dev] Embedded API: .ctor method signature query [mono]

2016-03-03 Thread Jonathan Mitchell
x.net> wrote: > > On 03.03.2016 14:36, Jonathan Mitchell wrote: >> HI >> >> I want to call the following constructor via the embedded API: >> >> public CloudClient(Func<string, string> filePathCallback) >> >> All my other embe

[Mono-dev] Embedded API: .ctor method signature query

2016-03-03 Thread Jonathan Mitchell
HI I want to call the following constructor via the embedded API: public CloudClient(Func filePathCallback) All my other embedded method and constructor calls work okay but there is an issue with this one - it is the only place I use a System.Func. The API reports that a

[Mono-dev] Embedded API : Error initialising the configuration system

2016-03-01 Thread Jonathan Mitchell
Hi On Mono 4.0.4.4 My app uses the embedded API to run managed code in a Cocoa OS X environment. Just recently, having updated some of my managed code, I have been getting errors from the managed configuration system. Error initialising the configuration system

[Mono-list] WCF and Named Pipes on OS X

2015-12-03 Thread Jonathan Mitchell
Hi I need some cross platform IPC. Does Mono WCF support named pipes on OS X? There is some *nixy looking stuff in the source code but also some notes about win32 only support. J ___ Mono-list maillist - Mono-list@lists.ximian.com

[Mono-list] Address Sanitizer report interpretation

2015-12-03 Thread Jonathan Mitchell
7 Container overflow: fc Array cookie:ac Intra object redzone:bb ASan internal: fe Left alloca redzone: ca Right alloca redzone:cb ==19261==ABORTING Regards Jonathan Mitchell Mugginsoft LLP jo

Re: [Mono-list] [embedding] "moving from mono_runtime_invoke() to mono_method_get_unmanaged_thunk()" or "how to call class method that takes and returns a string via thunks"

2015-11-12 Thread Jonathan Mitchell
> On 12 Nov 2015, at 12:41, Julian Mayer wrote: > > i didn't list any specific crash, because i tried in a million different ways > and got a different crash each time. > > i've solved this now. it seems, a unmanaged thunk takes a hidden additional > parameter,

Re: [Mono-list] [embedding] "moving from mono_runtime_invoke() to mono_method_get_unmanaged_thunk()" or "how to call class method that takes and returns a string via thunks"

2015-11-12 Thread Jonathan Mitchell
> On 12 Nov 2015, at 13:11, Robert Jordan <robe...@gmx.net> wrote: > > On 12.11.2015 13:52, Jonathan Mitchell wrote: >> >>> On 12 Nov 2015, at 12:41, Julian Mayer <jul...@corecode.at> wrote: >>> >>> i didn't list any specific crash, be

Re: [Mono-list] Can't get C# OSX app to appear in front of the app that runs it

2015-11-11 Thread Jonathan Mitchell
> On 11 Nov 2015, at 09:09, sams wrote: > > Hi there, > > I am writing an OSX C# app that behaves a bit like a plugin. The app it is > written for has a "custom button" function that will start my app and pass > it the filepath of some XML in the run command. > > My

Re: [Mono-list] [embedding] "moving from mono_runtime_invoke() to mono_method_get_unmanaged_thunk()" or "how to call class method that takes and returns a string via thunks"

2015-11-11 Thread Jonathan Mitchell
> On 11 Nov 2015, at 20:34, Rodrigo Kumpera wrote: > > How does it crash? Did you try debugging it? > > The invocation looks ok. > Is It really? >From reading the runtime source comments I would have tried something like: func(NULL, s, ); /** *

[Mono-dev] Building 4.2 on OS X

2015-11-10 Thread Jonathan Mitchell
I can build Mono 4.0 64bit on OS X 10.10 without issue. The 4.2 build dies: ./../../external/referencesource/System.Data.SqlXml/System/Xml/Xsl/Xslt/Scripts.cs(117,48): error CS0117: System.CodeDom.Compiler.CodeDomProvider' does not contain a definition forGetCompilerInfo'

Re: [Mono-dev] Building 4.2 on OS X

2015-11-10 Thread Jonathan Mitchell
> On 10 Nov 2015, at 10:01, Numpsy wrote: > > I've built the 4.2.1.91 tarball successfully on 64bit OSX, though that was > using a downloaded 32bit 4.2 build as the compiler. > Thanks for that. I tried building the latest 4.2 GitHub branch using the current 32 bit 4.2

Re: [Mono-list] mono embedding in c++: how to get a array from C# code?

2015-11-09 Thread Jonathan Mitchell
> On 9 Nov 2015, at 00:22, sunsflower wrote: > > > and how can I pass a pointer to mono?... > > stuct test > { >int index; >string name; > }; > > > MonoMethod* method = mono_class_get_method_from_name(klass, "testfunc", 2); > MonoException* ex; > typedef

Re: [Mono-list] mono embedding in c++: how to get a array from C# code?

2015-11-08 Thread Jonathan Mitchell
> On 8 Nov 2015, at 02:41, sunsflower wrote: > > I've tried to use a monoclassfield but it doesn't work with a string array in > C#. the return value is invalide. > c++: > > MonoClassField* field; > field = mono_class_get_field_from_name(klass, "entry"); >

Re: [Mono-list] Using Mono/C# to develop simple OSX app

2015-11-06 Thread Jonathan Mitchell
System.Data.Sqlite works well cross platform though you do have to build your own version for OS X as the distributed binaries are mixed mode. > On 6 Nov 2015, at 13:43, Edward Ned Harvey (mono) > wrote: > >> From: mono-list-boun...@lists.ximian.com

[Mono-list] CLA bot and pull requests

2015-11-06 Thread Jonathan Mitchell
I have registered with the CLA but the bot is still grumbling at me when I put in a pull request. Do I just ignore it or do I really need to sort it? The pull request is coming in from a github organisation account which I am a member of. Is that tripping the bot up? I can log in at

Re: [Mono-dev] boehm and pin to sgen and moveable

2015-10-04 Thread Jonathan Mitchell
Robert > On 4 Oct 2015, at 19:02, Robert Jordan <robe...@gmx.net> wrote: > > Hey Jonathan, > > On 03.10.2015 16:25, Jonathan Mitchell wrote: >> >> >> Under the Boehm collector objects seem to stay pinned as requested. >> Under SGEN they don’t i

[Mono-dev] boehm and pin to sgen and moveable

2015-10-03 Thread Jonathan Mitchell
In my ObjC->Mono bridge I have been using the Boehm collector and pinned memory (as an expedient). I now want to move to SGEN and moveable memory. As a first step I have switched to SGEN and left pinning enabled. My ObjC code wraps a MonoObject * in an NSObject. When the MonoObject is set it is

Re: [Mono-dev] Old version of Entity Framework bundled with Mono

2015-08-08 Thread Jonathan Mitchell
On 8 Aug 2015, at 05:52, Daniel Lo Nigro li...@dan.cx wrote: I recently spend a while debugging an issue I was having with Entity Framework, only to find that it was happening because Mono ships with a beta version in its GAC. Would it be possible to either update this to the latest

Re: [Mono-dev] Compiling Mono with debug symbols to diagnose an issue with embedded Mono 4.0.2.5

2015-08-06 Thread Jonathan Mitchell
On 5 Aug 2015, at 18:19, Alexander Köplinger alex.koeplin...@outlook.com wrote: You can build the MDK with https://github.com/mono/bockbuild#the-mono-mac-distribution, but I'm not sure if that includes debug symbols (I think it does). Nice to see that bockbuild now has some usage

Re: [Mono-dev] Compiling Mono with debug symbols to diagnose an issue with embedded Mono 4.0.2.5

2015-08-06 Thread Jonathan Mitchell
- From: Jonathan Mitchell [mailto:jonat...@mugginsoft.com] Sent: Thursday, August 06, 2015 3:03 AM To: Howard Rubin howard.ru...@hl.konicaminolta.us Subject: Re: [Mono-dev] Compiling Mono with debug symbols to diagnose an issue with embedded Mono 4.0.2.5 On 5 Aug 2015, at 21:55, Howard

Re: [Mono-list] Monodevelop made application not starting on ubuntu

2015-08-05 Thread Jonathan Mitchell
On 5 Aug 2015, at 13:34, Edward Ned Harvey (mono) edward.harvey.m...@clevertrove.com wrote: From: mono-list-boun...@lists.ximian.com [mailto:mono-list- boun...@lists.ximian.com] On Behalf Of onedevteam.com running with mono myapp.exe is not an option. I wan't application to be useful

Re: [Mono-dev] Compiling Mono with debug symbols to diagnose an issue with embedded Mono 4.0.2.5

2015-08-05 Thread Jonathan Mitchell
On 5 Aug 2015, at 02:12, jean-michel.perr...@csiro.au wrote: I am trying to debug C code, mostly to step through the mono runtime itself. I too would like to debug the Mono runtime itself and so would really, really, really like to able to build an MDK with debug symbols and source code

Re: [Mono-dev] Compiling Mono with debug symbols to diagnose an issue with embedded Mono 4.0.2.5

2015-08-04 Thread Jonathan Mitchell
On 4 Aug 2015, at 08:26, jean-michel.perr...@csiro.au wrote: * build/install mono from source (I know that) but with debug symbols I would second this. * If the above is done, can I use MonoDevelop or other graphical front-end to attach to the process with embedded Mono and step through

[Mono-dev] OS X 64 bit stuff

2015-07-20 Thread Jonathan Mitchell
HI Some of us use 64 bit Mono on OS X. The current binary download is currently deficient by 32bits. So: 1. Is there a timeline for a 64 bit OS X framework release? A few months ago the answer was no. 2. I think that Xamarin.mac supports 64 bits. Does this use a discrete 64 library build as

[Mono-dev] Building Mono MDK

2015-05-17 Thread Jonathan Mitchell
I would like to build a 64 bit version of the Mono MDK for OS X. It looks as if the current Mono OS X release is still 32 bit only. How do I configure an MDK build? Thanks Jonathan ___ Mono-devel-list mailing list

[Mono-list] Embedded API debugging

2015-05-09 Thread Jonathan Mitchell
I am using the Mono embedded API on OS X and want to be able to step down into libmonoboem et al to help clear up some issues. on OS X my 64 bit build command is like so: ./configure --prefix=/Library/Frameworks/Mono64.framework/Versions/3.2.3 --enable-nls=no make sudo make install How do I

Re: [Mono-list] Exception using EntityFramework 5

2015-05-07 Thread Jonathan Mitchell
EF6 runs great on OS X - in 64 bit mode too - using the System.Data.SQLite data provider. Our object model is reasonably complex. My setup is: Get EF6 from Nuget Mono 3.2.3 - a bit ancient I know - something more modern would be better Runtime v4.0.30319 You have to supply metadata specifying

Re: [Mono-list] Embedded API: Getting assembly version via MonoAssemblyName

2015-03-29 Thread Jonathan Mitchell
On 28 Mar 2015, at 13:40, Robert Jordan robe...@gmx.net wrote: There are a couple of public mono_assembly_name_* functions in assembly.h, including mono_assembly_name_new () which is probably allocating an opaque MonoAssemblyName struct for you. I think that function takes an argument

[Mono-list] Embedded API: Getting assembly version via MonoAssemblyName

2015-03-27 Thread Jonathan Mitchell
HI I want to get the assembly version like so: MONO_API uint16_t mono_assembly_name_get_version (MonoAssemblyName *aname, uint16_t *minor, uint16_t *build, uint16_t *revision); So I need MonoAssemblyName like so:

[Mono-list] soft debugger and embedded API

2015-03-18 Thread Jonathan Mitchell
HI I am trying to connect via the soft debugger to an app that uses the embedded API. The debuggee is on OS X, the debugger is on a windows machine VM at 192.168.1.72. The debugee has .mdb files available that reference symbol source locations on the debugger. I have been guided by the

Re: [Mono-list] soft debugger and embedded API (SOLVED)

2015-03-18 Thread Jonathan Mitchell
with the soft debugger. With these issues resolved I was able to run my OS X Obj-C app and debug the managed code on a Windows vm running under Fusion. see https://github.com/ThesaurusSoftware/Dubrovnik/commit/4bf62fabbc6c9c5375bee1f31ed71897a2f13de7 On 18 Mar 2015, at 10:38, Jonathan Mitchell

Re: [Mono-list] Why doesn't Mono do cross platform GUI development like Java?

2014-11-30 Thread Jonathan Mitchell
It seems there is also an offering from nevron https://www.nevron.com On 30 Nov 2014, at 15:30, Edward Ned Harvey (mono) edward.harvey.m...@clevertrove.com wrote: From: Terry Reese [mailto:ree...@gmail.com] Thanks -- I'd looked at the Xamarin forms, but I'm only interested in client

Re: [Mono-dev] Mono on Embedded Platform

2014-11-21 Thread Jonathan Mitchell
On 21 Nov 2014, at 07:05, techi eth techi...@gmail.com wrote: Hey, I have following point to check before start. 1) 1) How can I achieve small footprint from mono. I have followed the below link but it produces install directory which is more than 100 MB with mono 3.10.0.

Re: [Mono-list] [Mono-dev] DllImport on Mac

2014-10-20 Thread Jonathan Mitchell
On 20 Oct 2014, at 01:13, Brandon Perry bperry.volat...@gmail.com wrote: I cannot for the life of my figure out how to reference this library on mac for a DllImport. I have tried an absolute path as well as every permutation of the library name as possible since DllImport will auto

Re: [Mono-list] Debugging managed code launched via embedded API

2014-08-29 Thread Jonathan Mitchell
On 28 Aug 2014, at 17:40, Bob Summerwill b...@summerwill.net wrote: You should just be able to do Run | Attach to Process ..., and your host application should show up. Your scenario is exactly the same as Unity3D, used by millions of developers every day (except with a

Re: [Mono-list] Debugging managed code launched via embedded API

2014-08-29 Thread Jonathan Mitchell
On 29 Aug 2014, at 11:48, Bob Summerwill b...@summerwill.net wrote: This is on a Mac host, I assume, based on your Obj-C usage? Correct. I'm running Xamarin Studio 5.2.1 right now and my MacBook Air and do have that option. As for 64-bit, I'm not sure. Somebody else will need to

[Mono-list] Debugging managed code launched via embedded API

2014-08-28 Thread Jonathan Mitchell
I execute my managed code from a C app via the embedded API. Is it possible to attach the debugger to the running process in such a way that I can step through the managed code? Thanks Jonathan ___ Mono-list maillist -

[Mono-list] Embedded API: monoObject keying

2014-08-26 Thread Jonathan Mitchell
I wrap monoObject instances in a corresponding Objective-C instance. In general I want to maintain a a 1 to 1 relationship between any given managed object and its unmanaged Obj-C representation. I use mono_gchandle_new() and mono_gchandle_get_target() to access the unpinned managed objects.

[Mono-list] Embedded API: calling explicit interface properties

2014-07-15 Thread Jonathan Mitchell
Hi I have a class that implements the following two interfaces and I am having trouble accessing explicit interface properties via the embedded API. My unit tests fail (see below). The explicit interface properties are found okay but the property assignment fails in a way which makes me think

Re: [Mono-list] Embedded API: calling explicit interface properties

2014-07-15 Thread Jonathan Mitchell
On 15 Jul 2014, at 14:50, Robert Jordan robe...@gmx.net wrote: On 15.07.2014 13:24, Jonathan Mitchell wrote: Hi I have a class that implements the following two interfaces and I am having trouble accessing explicit interface properties via the embedded API. IIRC, the name

Re: [Mono-list] Embedded API: calling explicit interface properties

2014-07-15 Thread Jonathan Mitchell
On 15 Jul 2014, at 16:31, Jonathan Mitchell jonat...@mugginsoft.com wrote: When using the IReferenceObject1 I see the accessors without the prefix and reporting the correct argument type. To me it looks like we are good to go - but the the unit test still fails. Perhaps I am sort