Groups | Blog | Home
all groups > c# > september 2003 >

c# : Remoting Static members


Nicky
9/4/2003 11:49:23 PM
Hello,

Maybe a stupid question.

In my component on the servermachine I have some objects
that are static.

They are serveractivated.

At compiletime of the clientsource, he gives me an error
that I can not access static objects??

Is this normal when you use remoting.

When I use the same component but not with remoting, there
is no problem.

Nicky

Jeroen Smits
9/5/2003 1:37:54 PM
You simple can not use static members with remoting. Think about it. When
using a remote object the data for the object is send to the other computer.
However static members are stored in the class' data area, not in the
objects data area.

[quoted text, click to view]

AddThis Social Bookmark Button