Help : Access violation write to...

Back to topics list To post a new topic, please log in or register
avatar
1
jmmac 2015.08.18 00: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 

 

Attached files:
  array_test.ex4  (3.64 KB)
  array_test.mq4  (0.23 KB)
avatar
12992
Back to topics list  

To add comments, please log in or register