I created two different plugins and connected them together by
And it works very nice if they are connected. But the problem is when there is only one plugin launched, and another is turned off (not launched). As I understand in that situation there is no connection - but I am not sure if I understand it properly.
The problem is that if there is no connection and I call (by clicking button)
sendMessage my whole plugin host crashes. “Crashed” I mean there is twisting coloured beach ball (os x system icon, that it’s thinking) and I can’t even move any window of whole host. So that’s why I want to prevent calling
sendMessage if there is no connection. But the problem is, I don’t know how.
I found out that
connectToPipe("myUniquePluginName", -1)) always return
true. Even if second plugin is not running.
isConnected() also always return
true. So how to check if there is connection? Or how to check if other plugin is running and they are connected together?