remoting question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ernestnetdevel
    New Member
    • Dec 2009
    • 2

    remoting question

    hi,i have a question which is probably very simple.
    I have a server that runs a thread that computes some data through
    function X. Then i have a client that communicates with the server and gets
    results from function Y. Now, both function (X and Y) share a common variable lets say varZ. When function X populates varZ when the thread starts
    on the server, the results are not propagated on function Y when accessed
    by the client through Remoting. But on the server side the results are correct in function Y!
    It's almost like when client calls function Y, it has no idea what is happening varZ is as far as the value set by function X thread in the server.
    Any ideas(probably very silly question)?
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Maybe you are getting a new instance of that variable.
    Since it is to be shared across all calls have you marked it "static" ?

    Comment

    • ernestnetdevel
      New Member
      • Dec 2009
      • 2

      #3
      yah it looks like I am accessing a new instance of a Variable. I tried to set it to static but It still got overridden somehow.What I am trying to do is capture a variable that is being recorded by a Server's thread through the Client by using .Net Remoting. I am using Marshall by Reference with Singleton. The thread is executing Function A but I'm trying to access that Variable through Function B.

      Comment

      Working...