Click here to Skip to main content
15,671,266 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have created 4 shared memory segments using
shmid=shmget(key+sdz, shmSize, 0664);
shmat(shmid, CurAddr,SHM_RND);
CurAddr is updated by changing the offset for shmSize for different segments.

the segments are successfully created, checked through ipcs,the client also successfully attach to shared mem segment but the data read is (null) and the client terminated
giving segmentation fault.((null) is compared wid string)
Updated 20-Apr-14 22:14pm
Richard MacCutchan 11-Apr-14 9:03am    
Well that's unfortunate. And exactly how can we help?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900