IPC Remoting disconnected

G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top