CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008
    Posts
    1

    How to raise a event across App domain?

    Hi there,

    My main thread is a windows GUI.

    inside, I create many app domains. I want to raise a event inside app domains and show sth on the GUI.

    I tried make the even handle Serializable, but that is MarshalByValue, right?
    it does not work.

    Now my solution is pass the even handle as ref to the method(which is ugly)
    is there any good way to do it?

    Thanks

  2. #2
    Join Date
    Mar 2004
    Location
    33°11'18.10"N 96°45'20.28"W
    Posts
    1,808

    Re: How to raise a event across App domain?

    objects cross appdomains through remoting. however events don't work well with remoting, so most likely you'll be left to implement something on your own (WCF, win32, socket or file based).

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

Featured