Re: Populate array of PointF
Robert Jordan <[email protected]>
| Newsgroups | gmane.comp.gnome.mono.devel |
|---|---|
| Message-ID | <[email protected]> |
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. Robert _______________________________________________ Mono-devel-list mailing list [email protected] http://lists.dot.net/mailman/listinfo/mono-devel-list