You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.
Some users still have problems with non attaching putty windows.
It seems that the timing for the additional timing.
Best thing to do at this moment is to make the amount of time configurable.
The text was updated successfully, but these errors were encountered:
Actually I had a look at the code and did some research. It seems to me that the MainWindowHandle property sometimes returns 0 even if WaitForInputIdle() is called before. So I have inserted some code to work-around this (ctlApplicationPanel.cs, Line 1219ff):
// Additional timing
if(Classes.Database.GetBooleanKey("additional_timing", false))
{
System.Threading.Thread.Sleep(200);
}
for (int i = 0; i < 500; i++)
{
if (m_Process.MainWindowHandle != IntPtr.Zero)
{
break;
}
System.Threading.Thread.Sleep(20);
m_Process.Refresh();
}
m_AppWin = m_Process.MainWindowHandle;
This additional for-loop basically works for me with PuTTY 0.60, 0.61 and 0.62. So this makes me believe it even works for future versions.
I have even removed the "additional timing" part as it seems not to be required any more.
Maybe this code can be reviewed and included in a future release.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Some users still have problems with non attaching putty windows.
It seems that the timing for the additional timing.
Best thing to do at this moment is to make the amount of time configurable.
The text was updated successfully, but these errors were encountered: