Opened 14 years ago

Closed 14 years ago

#1921 closed Bugs (fixed)

interprocess shared_memory example needs patch (provided).

Reported by: Bryan Green <bryan.d.green@…> Owned by: Ion Gaztañaga
Milestone: Boost 1.36.0 Component: interprocess
Version: Boost Development Trunk Severity: Cosmetic
Keywords: example shared_memory Cc:

Description

The interprocess "simple example" of shared memory contains a glitch. The first program deletes the shared memory object, so it is not there for the second program to examine.

The example files involved are doc_shared_memory.cpp and doc_shared_memory2.cpp, under libs/interprocess/example.

I'm attaching a patch to apply within the 'example' subdirectory to correct the problem.

Attachments (3)

doc_shared_memory.patch (866 bytes ) - added by Bryan Green <bryan.d.green@…> 14 years ago.
patch
doc_file_mapping.patch (314 bytes ) - added by Bryan Green <bryan.d.green@…> 14 years ago.
patch for doc_file_mapping.cpp
doc_message_queueA.patch (332 bytes ) - added by Bryan Green <bryan.d.green@…> 14 years ago.
similar patch for doc_message_queueA.cpp

Download all attachments as: .zip

Change History (4)

by Bryan Green <bryan.d.green@…>, 14 years ago

Attachment: doc_shared_memory.patch added

patch

by Bryan Green <bryan.d.green@…>, 14 years ago

Attachment: doc_file_mapping.patch added

patch for doc_file_mapping.cpp

by Bryan Green <bryan.d.green@…>, 14 years ago

Attachment: doc_message_queueA.patch added

similar patch for doc_message_queueA.cpp

comment:1 by Ion Gaztañaga, 14 years ago

Resolution: fixed
Status: newclosed

Patch applied in revision 45816. Thanks for the report!

Note: See TracTickets for help on using tickets.