[Mono-dev] Populate array of PointF

Robert Jordan robertj at gmx.net
Fri Mar 10 22:30:04 UTC 2017


On 10.03.2017 21:54, howard.rubin wrote:
> Maybe I'm missing something, but changing
>     mono_runtime_invoke(ptFCtor, ptF, args, &exception);
> to
>     mono_runtime_invoke(ptFCtor, mono_object_unbox(ptF), args, &exception);


There are more mono_runtime_invokes in your code
which must be changed. For example, this one:

     args[0] = ptF;
     mono_runtime_invoke(MyClassMethod, nullptr, args, &exception);

It must be:

     args[0] = mono_object_unbox(ptF);
     mono_runtime_invoke(MyClassMethod, nullptr, args, &exception);

Robert




More information about the Mono-devel-list mailing list