Problem with IPCSocket

I am writing a console solution that will act as a helper application to a full GUI app. I have an IPCSocket called “MyIPCSocket” that I added to the project.

In the App.Run() method, I have the following code:

MyIPCSocket.Path = SpecialFolder.Temporary.Child("TestServerSocket").ShellPath
MyIPCSocket.Listen()

For some reason, the compiler complains that it has no idea what MyIPCSocket is! It simply can’t see the IPCSocket that’s part of the project.

What am I doing wrong?

You need to create an instance of it.

dim Ipc as new myipcsocket

[quote=288045:@Greg O’Lone]You need to create an instance of it.

dim Ipc as new myipcsocket

I can’t believe I forgot that. Thanks!