c# use an object instance across appdomains

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

    c# use an object instance across appdomains

    Hi.

    I need to use an object instance in 2 differnet AppDomains, meaning
    changing his fields and such...
    I tried to do it with Remoting but i couldn't find a way to refernce a
    specific instance in the remoted appdomain where the object was
    created.

    what can i do?
  • Mr. Arnold

    #2
    Re: c# use an object instance across appdomains


    "hufman" <tkolan@gmail.c omwrote in message
    news:54a69241-25b3-406e-a675-9155285a3e39@a2 2g2000hsc.googl egroups.com...
    Hi.
    >
    I need to use an object instance in 2 differnet AppDomains, meaning
    changing his fields and such...
    I tried to do it with Remoting but i couldn't find a way to refernce a
    specific instance in the remoted appdomain where the object was
    created.
    >
    what can i do?
    I don't know what you're trying to do, but you can do this too.



    Comment

    • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

      #3
      RE: c# use an object instance across appdomains

      Does the remote object derive from MarshalByRefObj ? Can you post a
      short-but-complete code sample that illustrates the issue? A description of
      the problem is insufficient here because nobody knows what your code is doing.
      -- Peter
      Site: http://www.eggheadcafe.com
      UnBlog: http://petesbloggerama.blogspot.com
      Short Urls & more: http://ittyurl.net


      "hufman" wrote:
      Hi.
      >
      I need to use an object instance in 2 differnet AppDomains, meaning
      changing his fields and such...
      I tried to do it with Remoting but i couldn't find a way to refernce a
      specific instance in the remoted appdomain where the object was
      created.
      >
      what can i do?
      >

      Comment

      Working...