Segmentation Fault in Shared Memory

Hi all,

I found "segmentation fault" error when i tried to read the shared memory struct. I defined a struct with 5000 array. There was no problem when i accessed array[0] until array[69], but the rest (array[70] up) was always error, "segmentation fault".

I'm a beginner in Linux C programming, so could someone give suggestion?
Is it related to some configuration in Linux?


Thanks
No. You would have to post your code.
Hi jsmith,

I have found the problem. It just because some pointer problem. I have missunderstood.
Thanks anyway :)
Topic archived. No new replies allowed.