Skip to Content
1
Apr 19, 2012 at 04:59 PM

Shared Memory Objects: Automatic area build does not work for client-dependent area

477 Views

Hi everyone,

I'm trying to build a shared memory buffer for client-dependent data: I implemented a shared-memory enabled root class. To support automatic area building I also implemented IF_SHM_BUILD_INSTANCE and the implementation works totally fine and creates an area instance that appears in SHMM and can be accessed from my coding once it is attached. But this works only if if_shm_build_instance~build is called manually in test mode. If I remove the area instance and try to "auto-create" the instance by calling the attach_for_read method I repeatedly get an cx_shm_no_active_version exception (even if a call attach_for_read in a loop to give it some time for the initialization). If I change the area to "client-independent" the auto build works fine - but it only buffers the data for the client that initiates auto build. Area Build Type is set to "Autostart for Read Request and Every Invalidation".

Any Ideas? Am I missing anything here or is it a (known) bug?

Best Regards,

Daniel