Home All Groups Group Topic Archive Search About

IPC Remoting disconnected

Author
9 Nov 2007 10:59 PM
RML
I am using IPC remoting to communicate an object between a client and server
app.  If I start the server app, then the client, all works fine.  If I exit
the client, and restart it about 2 minutes later, I get the error:

"Object /SharedData.rem has been disconnected or does not exists at the
server."

If i restart the client in less than 2 minutes, it comes up Ok every time.

Here is my VB code for the server:

        ' Use IPC Channel.
        Dim IPCChannel As New IpcChannel("AMService")
        ChannelServices.RegisterChannel(IPCChannel, False)

        ' Creates the single instance of SharedDataClass. All clients
        ' will use this instance.
        Dim RemotingRef As ObjRef =
RemotingServices.Marshal(Common.AMRec.oSharedData, "SharedData.rem")

Here is my VB code for the client:

        Dim oSharedData As  AMSharedDataClass.AMSharedData = 
Activator.GetObject(GetType(AMSharedDataClass.AMSharedData),
"ipc://AMService/SharedData.rem")

It appears to be some timeout involved.  Can anyone help?

RML

AddThis Social Bookmark Button