static int array[] - error in new Terminal

 

Hi 

The new build of the Termianl does not allow an array declared in the function as static

Example:

static int a[];
ArrayResize(a,1);

 

 The Compiler does not complain about it. But the Terminal does (4.00 build 890, 32-bit) 

Access violation write to 0x00000008

 

I used to have these type of arrays before which would keep its contents every time I call the function. The intend was to avoid declaring an array on a global scope.

Any ideas how to implement this idea?


 

declare array on global scope.

int a[];

you can resize anytime, but declare array on global scope.

 

Forum on trading, automated trading systems and testing trading strategies

static array error

Ilyas, 2015.09.29 11:13

Thank you for your message error reproduced. Fix.

Reason: