title: System Tray Notiifications show up when running the project in the debug mode in IDE [VS2017] but not in compiled exe in C# project
body: <p>I have multiple connected apps, one of which fires events and another runs in the system tray and displays notifications for those events. It used to work properly, but after making a change related to threading in one of the applications, it stopped working. The method is correctly called [I put a messagebox in that event], and in fact, the first time the event is fired after starting the apps, I get a small disturbance on the screen near the system tray, which goes away immediately. Subsequent events evoke no response. I have also tried  using the Synchronization Context [Post method] to see if the situation was resolved, but there is no difference. Usually, with threading issues, the synchronization context solves it. I found the following question on Stack overflow, but it did not help either
  <a href="https://stackoverflow.com/questions/5215492/system-tray-icon-working-in-debug-but-not-release-mode-in-qt">System tray icon working in debug but not release mode, in Qt</a>. 
  Please help.</p>