I tried to use a singleton but this does not work.
Guessing...that you know how remoting works ?
You should use a singleton with a lease timeout set to infinite
otherwise ,
it will still create new instances
copy and paste this region in your singleton
#Region " Remoting Override "
''' -----------------------------------------------------------------------------
''' <summary>
''' this method will make sure that the leasetime will be
infinite
''' </summary>
''' <returns>Nothing as valid lease point expiration time
</returns>
''' <remarks>
''' </remarks>
''' <history>
''' [michel] 6/4/2005 Created
''' </history>
''' -----------------------------------------------------------------------------
Public Overrides Function InitializeLifetimeService() As Object
Return Nothing
End Function
#End Region
hth
michel
"dange" <
[email protected]> schreef in bericht
Hi
I want to access a remote object to raise an event. How do I get the
reference to the object from the server application?
I tried to use a singleton but this does not work.
thanks
Dan