Osvaldo,
The values in Program1 and Program2 will be different if accessing the
same dll. Static values are limited to the app domain that the assembly is
loaded in, and the two executables are definitely running in different
application domains.
Like you said, you can get around this using remoting, and use a shared
instance. You might also want to consider using a component derived from
ServicedComponent. You can have a pooled component with a min pool size of
one, and a max pool size of one, effectively creating a singleton.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Osvaldo Bisignano" <va*************@yahoo.com.ar> wrote in message
news:eD**************@TK2MSFTNGP11.phx.gbl...
Program1.exe and Program2.exe reference Library.dll, which only contains a
class with static methods and properties.
Modifying a value of Library.dll from Program1.exe, will change when I
read that value from Program2.exe?
If not... must I use remoting to achieve this?
Can I use Diagnostics.Processes?
Suggestions?
Thanks everybody