[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"

Jonathan Mitchell jonathan at mugginsoft.com
Thu Nov 12 12:52:07 UTC 2015


> On 12 Nov 2015, at 12:41, Julian Mayer <julian at corecode.at> 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, MonoException ** which can't be NULL. of course this isn't documented anywhere.
> 
This I feel is a real problem for the embedded API as it is.
The above is documented in the source, but not in the header.
Source comment documentation is fine for the source authors but it leaves consumers out in the cold.
The long and the short of it is that you really need to have the Mono embedded source to hand at all times even if you don’t build you own Mono.

J


More information about the Mono-list mailing list