How to debug and detect hang issue

Posted by igor on Stack Overflow See other posts from Stack Overflow or by igor
Published on 2011-02-16T14:55:41Z Indexed on 2011/02/16 15:25 UTC
Read the original article Hit count: 314

I am testing my application (Windows 7, WinForms, Infragistics controls, C#, .Net 3.5). I have two monitors and my application saves and restores forms' position on the first or second monitors. So I physically switched off second monitor and disabled it at Screen Resolution on the windows display settings form. I need to know it is possible for my application to restore windows positions (for those windows that were saved on the second monitor) to the first one.

I switched off second monitor and press Detect to apply hardware changes.

enter image description here

Then Windows switched OFF the first monitor for a few seconds to apply new settings. When the first monitor screen came back, my application became unresponsive. My application was launched in debug mode, so I tried to navigate via stack and threads (Visual Studio 2008), paused application, started and did not find any thing that help me to understand why my application is not responsive. Could somebody help my how to detect the source of issue.

© Stack Overflow or respective owner

Related posts about winforms

Related posts about visual-studio-2008