
Hi, After creating the shared memory I put three containers (boost::multi_index, std::map and std::vector) into the shared memory, then objects into the containers. But in later part of the execution, there are condition when I need to remove these elements and containers. I also don't want to eat up the primary memory by creating the saparate shared memory nor I want to remove the earlier shared memory. If I just destroy the containers the previous garbage data may create problem. So I want such method or way to memset the shared memory with NULL characters. This information should suffice the query, Can I get some clue now? On 3/8/07, Ion GaztaƱaga <igaztanaga@gmail.com> wrote:
Thanks a lot for the reply..... but, if shared memory is created with
Shibu Bera wrote: the
class fixed_managed_shared_memory..? There is a method in the class get_address() which returns base address of the shared memory. Suppose if I memset this pointer, then initial mapping information kept inside the shared memory (map tree created by segment_manager and memory_algorithm) will also be lost. Please tell me any clue about this problem..?
Well, when fixed_managed_shared_memory is created, the memory is zeroed and after that, the map tree is created. Why do you want to memset all the segment to a particular value? I will need a bit more information of your needs.
Regards,
Ion _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Regards, CBu..., Tata Power, Mumbai.......