Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHas anyone else had problems with POSIX threads?
Hi I have made an app with 2 POSIX threads for my linux kernel(2.6 microtronix). When I establish my 2 pthread_t varibles the kernel simply reboots. The uClibC has built in support for POSI...
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