Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > C++ stl map in shared memory betn 2 unrelated processes

Reply
Thread Tools

C++ stl map in shared memory betn 2 unrelated processes

 
 
grbVRCPP grbVRCPP is offline
Junior Member
Join Date: Mar 2007
Posts: 3
 
      03-13-2007
Hi,
Can some one please help me in the following situation?
I have an application, which I'm trying to split into 2 different processes. Both processes need to have a common C++ STL hash map. I thought of creating this hash map in shared memory, but for some reason when the second process tries to access the map created & populated by 1st process, it gives seg fault.
Is there any way for second process to properly access & if required modify the map?
Please help.
Thanks.
 

Last edited by grbVRCPP; 03-13-2007 at 11:35 AM.. Reason: to enable all to view this post & then reply
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Avoid memory corruption in shared memory used by several processes? Sune C Programming 14 08-26-2007 03:57 AM
Avoid memory corruption in shared memory used by several processes? Sune C Programming 5 07-13-2007 02:29 PM
Relocation error with STL Map in Shared Object Suneeel@gmail.com C++ 1 06-21-2006 07:28 AM
Information exchange between unrelated processes pk Perl Misc 1 08-25-2004 10:46 AM
Difference betn: errorPage directive and <erorr-page> in web.xml may Java 1 09-29-2003 10:47 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57