Click to See Complete Forum and Search --> : How to raise a event across App domain?


lvv
August 26th, 2008, 01:30 PM
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

MadHatter
August 26th, 2008, 02:14 PM
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).