Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
Form closing when disconnect/reconnect from Remote Desktop when app contains a visible UltraToolbarsManager
posted

Dear all,

We recently replaced the traditional file menu by a UltraToolbarsManager control in our desktop application and everything works well -- except when we found out one issue that needs to be addressed.

When we use Remote Desktop and run our desktop application, Disconnecting the remote session and THEN reconnecting will cause the desktop application close.  It happens when the reconnect happens ( we have code to check and confirmed the app is still running after disconnect ).

Some clues:

  1. It happens when remote session RECONNECTS -- not when disconnect;
  2. Only our desktop application closes -- all other apps within the remote session remains; so it should not be remote session timeout;
  3. When UltraToolbarsManager is marked invisible ( visible = false ), it no longer close when reconnect;
  4. When doing this via a Visual Studio debug, we found "System.Windows.Forms.Application.ThreadContext.RunMessageLoop() in Call Stack before System.Windows.Forms.Form.CheckCloseDialog() fires;
  5. We tried to turn on Break on ALL EXCEPTIONS but nothing caught;
  6. We put breakpoints on all codes we added on UltraToolbarsManager events but no luck;

Any idea how we can find out what is causing the issue?  Thanks very much in advance.

-- Alex