[Mono-osx] mono_jit_cleanup gets EXC_BAD_ACCESS
Dmitriy Pyalov
dipyalov at gmail.com
Thu Apr 4 17:30:02 UTC 2013
I'm embedding Mono runtime into existing Cocoa application. I've built the
latest runtime from GitHub (master branch) and exiting application after
running some managed code gives me this during the mono_jit_cleanup call:
https://dl.dropbox.com/u/108566029/BAD_ACCESS.png
It's only reproduced when I try to send HTTP request via HttpWebRequest.
Specifically when I call GetRequestStream(). The code works fine and all the
managed objects are disposed correctly. The problem is with shutting down
the runtime.
This is also reproduced on the latest Mono 2.10.x branch. But I get SIGSEGV
then.
This can occur in different places, so it seems like it is a threading
issue.
So, how should I shutdown the runtime correctly. Is mono_jit_cleanup
sufficient to correctly dispose of the runtime? And can I exit the
application with runtime undisposed?
P.S.
I'm using 32-bit build of Mono on OSX 10.8.3. I link with
libmono-2.0.1.dylib, so it should be Boehm GC.
--
View this message in context: http://mono.1490590.n4.nabble.com/mono-jit-cleanup-gets-EXC-BAD-ACCESS-tp4659226.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
More information about the Mono-osx
mailing list