Results 1 to 1 of 1

Thread: remoting marshalbyref and returning serialized object runs in same thread as client?

  1. #1

    Thread Starter
    Member Husko's Avatar
    Join Date
    Nov 2004
    Location
    Michigan
    Posts
    55

    remoting marshalbyref and returning serialized object runs in same thread as client?

    hi. i have a marshalbyrefobject remoted by IIS. it looks up some data from two databases, builds a timer and then sends the timer back to the client using serialization. The timer has a few events that are handled by the main form in the client that created the marshalbyrefobject. for some reason, i cant get these events to fire. Right now I am using simple addhandlers in the main form on the client to hook up the events.

    When I change the marshalbyrefobject to serializable, the events work. could this be becuase when done, this way, the object never runs in the servers process so when it sends the timer to the client, it is created and ran in the clients own thread? and when the object is ran once on the server process, the timer is send to the client and then ran on a differnt thread than the client?
    Last edited by Husko; Jan 17th, 2005 at 08:35 AM.
    The fool doth think he is wise, but the wise man knows himself to be a fool. - William Shakespeare

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width