Download MetaTrader 5
To add comments, please log in or register
No time for trading? Subscribe to signals!
jmmac
7
jmmac 2015.08.17 22:40 

Hi, the following test code crashes with the message:

 2015.08.17 23:21:09.237 Access violation write to 0x920E3DA8 in 'C:\Users\Sabre\AppData\Roaming\MetaQuotes\Terminal\1DAFD9A7C67DC84FE37EAA1FC1E5CF75\MQL4\Experts\array_test.ex4'

 

int OnInit() {

        float A[][1][1][1];
        
        ArraySetAsSeries(A, false);
        ArrayResize(A, 20); 
        ArraySetAsSeries(A, true);
                
        A[0][0][0][0] = 0;
        
        return(1);
}



void OnDeinit(const int reason) {}

void OnTick() {}

 

If I comment line  ArraySetAsSeries(A, false); it works. And if I use a 3 dimension array it works.

Do you know what the problem is? Thank you.

 

Jaime 

Files:
/
To add comments, please log in or register