8 Jan
2008
8 Jan
'08
5:40 p.m.
Srinivas Gardas escribió:
Hi, I am facing an issue with the 'Shared Memory File'.. Sometimes I get the 'SharedMemory File Name' as the first element of the structure that I used, to create a 'interprocess::list' and when this happens, it means that the SharedMemory got corrupted and my program crashes. Has anyone faced this issue, or does anyone know what might be wrong?
I don't see any problem with your approach, can you give me more information? Also, take in care that you need to use mutexes to protect concurrent accesses to the list (an interprocess_mutex constructed in the segment should work). Regards, Ion