Remoting Static members

  • Thread starter Thread starter Nicky
  • Start date Start date
N

Nicky

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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top