(E-Mail Removed) wrote:
> Yes
>
> // start the process to talk to
> Process TrackersProcess = Process.Start(@"some good thing to starg",
> TrackerBuilder.ToString());
>
> // set me up to send
> ClientChannel = new IpcClientChannel();
> ChannelServices.RegisterChannel(ClientChannel, true);
> WellKnownClientTypeEntry remoteType = new
> WellKnownClientTypeEntry(typeof(MTGClassLibrary.MTGTracksMessage),
> TrackerURL);
> RemotingConfiguration.RegisterWellKnownClientType(remoteType);
>
> // here is the example
>
> MessageTracker = (MTGTracksMessage) Activator.GetObject
> (typeof(MTGClassLibrary.MTGTracksMessage), TrackerURL);
>
> If I comment out the start process the GetObject still works.
This is by design. Activator.GetObject
does not actually connect, it only returns proxy object. Connection is
established at the moment first remote call is made ("lazy connect").
That was bad desing decision IMHO, but it is as it is. You could
implement dummy method ("Ping()") on your remote object on which you can
check (and force) connection.
Regards,
Goran