Boost logo

Boost :

From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2024-09-30 19:16:27


El 30/09/2024 a las 18:44, Murali Kishore via Boost escribió:
> Hi,
>
> I am observing that the first 4 bytes are changed to zero, let me know what
> is the reason for this.

You need to provide us with a fully compilable example, otherwise it's
not easy to deduce what's happenning in your code.

Apart from that, you are storing raw pointers inside timer_instance_t,
and that is not going to work between processes. See:

https://www.boost.org/doc/libs/1_86_0/doc/html/interprocess/sharedmemorybetweenprocesses.html#interprocess.sharedmemorybetweenprocesses.mapped_region.mapped_region_address_mapping

Best,

Ion


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk