I have an application and a systray add-on to the application. The application and the systray extension application each have a TSimpleIPCClient and a TSimpleIPCServer to facilitate two-way communication on the local machine. The Server and Client connect via a unique ServerID property and I currently have the Global property set to True. This part worked perfectly.
However, this becomes a problem if I want to run two copies of the program on the local machine (which is a possible use-case and is also extremely valuable for testing). If two copies of the program are launched, because both copies have the same ServerID to connect to, the second copy takes over the first copy's connections and the first copy doesn't receive any data after that.
So, my question is, how can I run two copies of an application and two copies of its systray sister app and have them both speak to each other via SimpleIPC.In some ways it seems like the InstanceID property of SimpleIPC may have something to do with this, but if so, I'm not quite sure how and I've found zero information about using the InstanceID of SimpleIPC online.
Does anyone have any ideas about how to make this work?
