google
10/14/2004 2:16:00 PM
Hi,
I'm fairly new to remoting, and I'm running into problems passing
objects as arguments to a remote method when there are multiple
references to that object on the client.
An example:
On the client side I have two references to a single instance of
MyBusinessObject: x and y. In my remote object, I have a method (sub)
that takes a MyBusinessObject as a parameter ByRef and makes some
change to it (increments a counter, e.g.). If I call this method
passing x as my argument, once control returns to the client, I can
see that x contains the updated data. Y does not. X and Y no longer
refer to the same object (x.Equals(y)=False).
Anyone have any thoughts as to what I'm doing wrong?
I'm running on version 1.1 SP1 of the framework, using remoting
through IIS.
Thanks!
-Melissa Lewis