I have been looking around for over a week now, and I haven't been able to find anyone else having a similar problem to what I'm seeing here.
I'm working with an OLD application running on Windows XP and developed in Visual Studio 2003. All of a sudden about 3 weeks ago, the application becomes unresponsive and the operator has to do the Windows three-finger-salute (CTRL-ALT-DEL) to bring up the task manager, kill the application process (which is shown as Not Responding) and restart the application.
I managed to have it happen once in the debugger, and when I paused the application it was waiting the system to return from attempting to set the System.Windows.Forms.Timer.Interval property.
Here's the object and where it appeared to hang, this isn't how it's written in the source code
internal static System.Windows.Forms.Timer timerMtimeOut;
// This is in an initialization method.
timerMtimeOut = new System.Windows.Forms.Timer();
timerMtimeOut.Tick += new System.EventHandler(timerMtimeOut_Tick);
// this is how it's value is set.
timerMtimeOut.Interval = 1 * msec; // <-- This is where it was in the debugger
timerMtimeOut.Enabled = true;
private static void timerMtimeOut_Tick(object sender, System.EventArgs e)
{
mTimeOut +=timerMtimeOut.Interval/msec;
}
The application essentially becomes unresponsive and has to be shut down using the Task Manager and restarted.
It's been working fine for years and then this just started happening about 2-3 weeks ago.
Has anyone else seen this behavior?