post  Segmentation Fault in Shared Memory

albogp (4)   Link to this post
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
jsmith (3099)   Link to this post
No. You would have to post your code.
albogp (4)   Link to this post
Hi jsmith,

I have found the problem. It just because some pointer problem. I have missunderstood.
Thanks anyway :)

This topic is archived - New replies not allowed.