[Mono-dev] Populate array of PointF

Robert Jordan robertj at gmx.net
Fri Mar 10 08:48:52 UTC 2017

On 10.03.2017 00:20, howard.rubin wrote:
> I need to use mono in C++ to populate an array that will be sent to C#.
> Here's my output and complete test program:

>     // Create 1 element array of PointF and print it
>     MonoArray* arrayPtF = mono_array_new(domain, ptFClass, 1);
>     mono_array_set(arrayPtF, MonoObject*, 0, ptF);

You're storing a MonoObject* into a PointF[] array. This isn't
quite right. You're supposed to store unboxed PointF values
into the array.


More information about the Mono-devel-list mailing list