[Mono-list] MonoArray and max_length

Rodrigo Kumpera kumpera at gmail.com
Mon Feb 27 15:00:34 UTC 2012


Use the mono_array_length function

On Sun, Feb 26, 2012 at 4:07 PM, mathos200 <mathos200 at yahoo.co.uk> wrote:

> Hi,
> I've got source files with a lot of "MonoArray" and "max_length" in it.
> Here
> is an example:
>
> double*
>
> RT2012::Entree::Ven::RT_Data_Ventilation_Naturelle_Hybride::GetdP_bea()const{
> MonoObject* lReturn =  mono_runtime_invoke(mMonoGetdP_bea ,
> mMonoObject,NULL,NULL);
> double * res = new double [*((MonoArray*)lReturn)->max_length*];
>
> How can I change the code to get work with mono-2.0 (allocation of big
> arrays)?
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/MonoArray-and-max-length-tp4422717p4422717.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120227/5f1c9c74/attachment.html>


More information about the Mono-list mailing list