Phil Jones
8/16/2004 2:33:00 AM
I have a Remoting server assembly being hosted within a windows Form.
There is an Singleton object published by the server. The object can be
retrieved via an shared "Instance" field that retrieves an instance of
itself (as per the .NET Singleton pattern).
Here's the weird thing I'm finding. If I grab the Singleton instance of the
object from the client - I can work with that, and it is really a single
instance to all interaction on the client(s).
But if I grab an instance via Instance property from the hosting Window's
Forms app - it return a different object (a new instance).
I don't get it! Is the win forms calling in from a different app-domain.
This doesn't quite stack because I can retrieve events from the assembly
(within the WinForms app) that are instigated by calls from clients.
Does this sound weird? From the winforms app - shouldn't I be talking
directly to the same app-doimain that the remote clients are talking to??
Thanks everyone.
==
Phil