Remoting Static members

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nicky

    #1

    Remoting Static members

    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

    #2
    Re: Remoting Static members

    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.

    "Nicky" <nicky.haezebae rt@pwc.be> wrote in message
    news:214801c373 79$d7034a60$a00 1280a@phx.gbl.. .[color=blue]
    > 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
    >
    >[/color]


    Comment

    Working...