Hi and thanks. Let me rephrase my question:
How can I invoke a method that lies in a .NET DLL that is loaded by two
distinct AppDomains? See, I need to call the method when one of the
AppDomains makes a certain change that invalidates some data in the DLL.
Is this clearer?

Signature
Thanks in advance,
Juan Dent, M.Sc.
Hi
So if you want to invoke the method, we need to tell the runtime in which
AppDomain you want to execute the method.
If a dll is loaded into two appdomain, we can consider there are two dll
copy in the memory, each appdomain own one.
If certain dll's method will create a new object, then we execute the
method in appdomain A, then the object will be created in appdomain A, if
we execute the method on Appdomain B, another object will be created on
appdomain B.
If now we change the object in Appdomain A, the Appdomain B's object will
not change.
We can consider the appdomain as a process in win32 category.
For how to call a method in certain appdomain from another appdomain, you
may refer to the links I post before.
Also can you tell us why you wants to do that? what is your concrete
scenario?
BTW I think you may try to take a look at the two books about process,dll,
thread, appdomain.
Programming Applications for Microsoft Windows (Dv-Mps General)
by Jeffrey Richter
http://www.amazon.com/exec/obidos/tg/sim-explorer/explore-items/-/1572319968
/0/101/1/none/purchase/ref%3Dpd%5Fsxp%5Fr0/103-8401450-8094224
Applied Microsoft .NET Framework Programming
by Jeffrey Richter
http://www.amazon.com/exec/obidos/ASIN/0735614229/qid=1120875040/sr=2-1/ref=
pd_bbs_b_2_1/103-8401450-8094224
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Juan Dent - 15 Jul 2005 01:38 GMT
Thanks for your help. I finally found a way to do what I wanted. Basically I
synchronized via a file and used FileSystemWatcher.
Thanks again. Your comments were helpful!
Juan Dent, M.Sc.
> Hi
>
[quoted text clipped - 36 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.
"Peter Huang" [MSFT] - 15 Jul 2005 03:26 GMT
Hi Juan,
I am glad that you have worked out the problem.
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.