Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHi GreateWhite.DK,
Now I am interested to see how you compiled this program. I don't think you can use "new" here: <div class='quotetop'>QUOTE </div> --- Quote Start --- for(int x=0; x < 10; x++) { arrayBuffer[x] = new int[10]; printf("*\n"); }[/b] --- Quote End --- I would do it this way: int x; for(x=0; x < 10; x++) { arrayBuffer[x] = malloc (sizeof(int) * 10); printf("*\n"); } Since the memory are malloced from the heap, the problem is not a stack size issue. I think "new" caused your problem. Regards, wentao