I am back to Watchdog App in multy monitor configuration.
I hadn’t been able to launch more than one instances (renamed .exe’s) of watchdog until I found out that there was a protection in source code.
Here is the line in “main”:
static Mutex mutex = new Mutex(true, “Watchdog”);
If a second instance launches and sees the same named mutex - it automatically exists.
I have changed this line to:
static Random my_rnd = new Random(DateTime.Now.Millisecond);
static Mutex mutex = new Mutex(true, “Watchdog” + my_rnd.Next(1,int.MaxValue).ToString());
Now I can launch as many watchdogs as I want.
Question to xibo developers:
My configuration is: one PC - two monitors.
Are the following steps right to use xibo watchdogs (after my modification of source code)?:
- Create watchdog_1.exe, watchdog_2.exe.
- Configure all pathes in watchdog_1.exe.config and watchdog_2.exe.config, so they both can launch xibo_player_1.exe and xibo_player_2.exe
- Put watchdog_1.exe and watchdog_2.exe in startup folder (or alternativly set-up task scheduler in windows to start watchdog_1.exe and watchdog_2.exe after windows logon).
Thank you.