[Mono-list] MonoArray and max_length

mathos200 mathos200 at yahoo.co.uk
Sun Feb 26 19:07:20 UTC 2012


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.


More information about the Mono-list mailing list