M
miloody
Dear all:
My pc installed 2G DRAM, but when I compile a source code like below:
typedef struct _Y_Block{
unsigned char uData[16][16];
}Y_Block;
int main(void){
Y_Block ppYTmpblocks[1920/16][1920/16];
Y_Block ppUTmpblocks[1920/8][1920/8];
Y_Block ppVTmpblocks[1920/8][1920/8];
ppVTmpblocks[1920/8][1920/8].uData[0][0]=0x12; //xxxx
return 0;
}
The os will say "Program received signal SIGSEGV, Segmentation fault.
main () at test.c:9"
Does that mean my memory is really not enough?
if the problem doesn't come from memory, where I can fix it?
appreciate your help,
miloody
My pc installed 2G DRAM, but when I compile a source code like below:
typedef struct _Y_Block{
unsigned char uData[16][16];
}Y_Block;
int main(void){
Y_Block ppYTmpblocks[1920/16][1920/16];
Y_Block ppUTmpblocks[1920/8][1920/8];
Y_Block ppVTmpblocks[1920/8][1920/8];
ppVTmpblocks[1920/8][1920/8].uData[0][0]=0x12; //xxxx
return 0;
}
The os will say "Program received signal SIGSEGV, Segmentation fault.
main () at test.c:9"
Does that mean my memory is really not enough?
if the problem doesn't come from memory, where I can fix it?
appreciate your help,
miloody