Q
quilkin
Hi,
I have a Windows service which communicates to a user app via IpcChannel
remoting.
It all works fine until the service is stopped and restarted (or restarted
via Management Console Services), when the lines
_ipc = new IpcChannel(properties, clientProv, serverProv);
ChannelServices.RegisterChannel(_ipc, true);
fail because _ipc returns 'null'.
I did try have a statement
ChannelServices.UnregisterChannel(_ipc);
when the service stops but that made no difference.
If I wait several minutes before restarting the service, it usually restarts
OK, but I need it to restart in less than one minute if there's a problem
with it. Note, it always restarts OK on Vista, this problem is only evident
on XP!!
So, how do ensure that the previous incarnation of the remoting channel is
always deleted?
I have a Windows service which communicates to a user app via IpcChannel
remoting.
It all works fine until the service is stopped and restarted (or restarted
via Management Console Services), when the lines
_ipc = new IpcChannel(properties, clientProv, serverProv);
ChannelServices.RegisterChannel(_ipc, true);
fail because _ipc returns 'null'.
I did try have a statement
ChannelServices.UnregisterChannel(_ipc);
when the service stops but that made no difference.
If I wait several minutes before restarting the service, it usually restarts
OK, but I need it to restart in less than one minute if there's a problem
with it. Note, it always restarts OK on Vista, this problem is only evident
on XP!!
So, how do ensure that the previous incarnation of the remoting channel is
always deleted?