What are some options for keeping a persistent reference to two applications even if one crashes so that when re-opening the first one, it can get a reference to the second one and call methods on it.
The situation is as follows:
App1 (a web browser plugin) instantiates App2 via a object reference in an HTML page and gets a reference to it so that it can make API calls to App2.
App1 crashes but App2 stays open.
When App1 re-opens, it needs to get a reference to App2 (still running) so that it can continue to make API calls.
This is all done running as admin on the machine. What is the best way for App1 to get a reference to the still running App2 when it re-opens after crashing?