ArrayResize problem

 
in my init() function , i have a call to ArrayResize that works on intial call, but when the indicator is selected in the Indicator List and a input parameter changed, ArrayResize will fail.
Is this expected behavior or a bug ?

Thanks,
Chris
 
expose please your init finction sources (please use button 'pre')
 
double      rangeA[][1];

extern int     Range          = 7;

int init()
{

   int r = ArrayResize(rangeA,Range);
   
   if( r != Range )
      Print("Range Error");
  
   return(0);
}
 
 
thanx. we'll check
 
Hi

Has there been a resolution to this problem? I am experiencing the same error in using code put forward in the forum.

I get an "Cannot array resize" error, no matter how I try to resize.

Thanks
Des
 
Any luck yet?
 
exposed code works properly. "Range error" will be printed if second range is greater than 1 because You resize first range but receive as return value all the array size.
Reason: