Posted By: txesmi
baffling crash - 10/03/13 21:01
How can this crash in main?
Could someone test it in order to know if it is my pc problem? I can't increase the array size without a crash... I can't believe it
Code:
#include <acknex.h> #define INTARRAY 128 void main () { var array[INTARRAY][INTARRAY]; var i, ii; for ( i=0; i<INTARRAY; i+=1 ) { for ( ii=0; ii<INTARRAY; ii+=1 ) { array[i][ii] = maxv ( i/INTARRAY, ii/INTARRAY ); } } while ( !key_esc ) { wait(1); } sys_exit ( NULL ); }
Could someone test it in order to know if it is my pc problem? I can't increase the array size without a crash... I can't believe it