Hi,
I don't think you can do what you want here. If you are marshalling between
two different apps on the same machine then you should be seeing the
changes. But since you mentioned "server" it sounds like you have two
different machines. If this is the case they won't be able to share the
object ByRef because they can not reference each other's memory. In order
to reflect changes you'll need to use a client/server approach. For example
saving the object to a DB with a date/time updated field. Whenever your app
on the server or client uses the object it first checks to see if it's
date/time field matches what is in the DB. If it does you know it is good,
if it doesn't then you'll need to grab the new data before using it. Good
luck! Ken.
--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.
"Hon Yuen, Ng" <hy**@tm.net.my> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi
I have a object (classA, marshalbyref) that is passed from the server. I
tried assigning a value to one of the object's property however, the
changes is not reflected.
I tried assigning this object to a variable of the same type and do the
assignment again. This works, but the original object still maintain the
same property value.
In additional to that, i also found out that the object i get from the
server is not class A type, instead the hint shows that it is a
System.Runtime.Remoting.Proxies.__TransparentProxy .
I'm newbie to VB.NET. Can anyone give me a hints on what is happening?
Thanks in advance.
From,
Hon Yuen, Ng