Re: [Mono-dev] Initialize mono on non main thread

2016-06-09 Thread Alex Rønne Petersen
Yes, this is definitely possible. I would recommend that you look at the (now open source) Xamarin.Android Mono glue code: https://github.com/xamarin/xamarin-android/tree/master/src/monodroid/jni Regards, Alex On Thu, Jun 9, 2016 at 4:10 PM, nicob wrote: > Hi, I'm initializing Mono using Java J

[Mono-dev] Initialize mono on non main thread

2016-06-09 Thread nicob
Hi, I'm initializing Mono using Java JNI. The JNI code doesn't run on the main thread, therefore I get segmentation faults. I've tried mono_thread_attach (mono_domain_get_root_domain and mono_domain_get) but that's the place where the SIGSEGV is generated. Can Mono be initialized on a non main th