I have implemented an InterprocessConnection on a component that provides control for presets. I needed the component to broadcast a message to other plugin instances that a new preset had been added, so that they can update a combobox list of presets. This would ensure that the normalised index of the preset selected will be correct when the plugin instances are loaded again.
The problem is that my InterprocessConnection, initially calls connectionMade on connectToPipe, but then does not return true it seems as connectionLost is then called.
I’m not sure what I am doing wrong here. Both plugins are the same type and the code I am using is:
createPipe("MREVMIXPRESETS", -1);
if(connectToPipe("MREVMIXPRESETS", -1))
{
DBG("Connected");
const String text("Test_IPC");
MemoryBlock messageData (text.toUTF8(), text.getNumBytesAsUTF8());
sendMessage(messageData);
}
else
{
DBG("Not connected");
}
I am creating the connection using:
InterprocessConnection(true, 88)