Home Help Center

Using classes with ICE

JvDJvD Member Joost van DoornOrganization: MobaProject: Main Control Software
Hello,

I have the following set of objects:
1. Object A, contains some attributes and some methods.
2. Object B, contains also some attributes and methods.
Since Class B has an association towards Class A, object B also contains a pointer to ClassA. Here the address of object A is stored.

My ICE interface contains the call GetObjectOfTypeB returning an object of type classB. My intention is to return Object B and Object A, since B is associated to Object A.
Both the client and the server have a complete definition of both classA and classB, so calls to methods can be executed.
When I try to execute the call the client generates all kinds of execptions.


Please note that this is a simplicification of my actual problems. I want to transfer a tree of objects that are associated to each other objects in the tree through ICE, from server to client.

Do you have a sample that illustrates a solution for this situation. I was not able to locate one.

Best regards,

JvD

Comments

  • JvDJvD Member Joost van DoornOrganization: MobaProject: Main Control Software
    Do not bother to answer. I was using the * symbol in my slice file. And according to the manual this does not mean 'pointer' but 'proxy'.

    Thread closed.

    JvD.
Sign In or Register to comment.