Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Shared memory area & triggering "client" actions

stamik
Explorer
0 Kudos

Hi all,

I'm playing around with shared objects, and I would like to accomplish one thing:

I have a shared memory and a "client" class which uses it.

When one of the instances of this client class calls a specific method of the shared memory root class, another instance of the client class should receive a message from the root class. This other instance would be running under a different user.

Since no events are allowed for shared memory area root classes, event handling on the side of the client class is not possible. I even tried to store references to instances of the client class in the shared memory but this would not work either (surprise! surprise! - CX_SHM_EXTERNAL_REFERENCE

So apart from periodically querying the root class from the client, is there really no way how to initialize the SHMA->client communication from the shared memory area side ?

thanks,

Stanislav Mikulas

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

I guess, we don't have much luck on this design.

I had tried both the options: Event from the shared objects and Saving the objects in the Shared memory, but it didn't allow me to do that.

Regards,

Naimesh Patel

0 Kudos

If your clients keep the read connection to the shared memory, is there a way to follow this connection back to the clients?

But even if so, how could you trigger an event at the client?

Actually, I think there is no solution besides polling the shared memory objects for changes periodically.