[Mono-dev] strange bug in debug mode..

pierre pierre.saunier at ppmodeler.com
Sun Mar 11 00:01:43 UTC 2018


Hi,

I have embedded mono.

One of my function is declared in cs as:

   [MethodImplAttribute(MethodImplOptions.InternalCall)]
   static extern private float mono_jsonVal_asNumber(IntPtr jsonVal);

and in the embedding program, I have

mono_add_internal_call("jsonVal::mono_jsonVal_asNumber(intptr)", 
mono_jsonVal_asNumber);

Every thing is running fine.

but if in the softDebugger, I do a CMD_SET_EVENT_REQUEST with command 
CMD_EVENT_REQUEST_SET on event EVENT_KIND_METHOD_EXIT, then instead of 
having the right returned number, in mono, I always get 0.

Running the same without subscribing to method exist work fine (or 
without SDB).


Regards,

Pierre



More information about the Mono-devel-list mailing list