2009 Mar 07 12:11 AM
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
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
2009 Mar 09 2:24 PM
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
2009 Mar 11 9:43 AM
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.