cplusplus.com
C++ : Forum : UNIX/Linux Programming : Segmentation Fault in Shared Memory
 
cplusplus.com
Information
Documentation
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs


post Segmentation Fault in Shared Memory

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

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