These are chat archives for ButchersBoy/Dragablz

22nd
Sep 2016
Shawn Anderson
@shawnmanderson
Sep 22 2016 13:34
So I got a strange one - back in Dec there was a commit that modifies enabled state (ButchersBoy/Dragablz@860cbab). This is a good change and was actually committed by a coworker of mine. However I'm running into VERY rare situations where a closing tab gets exceptions when the enabled state is set (at MS.Win32.UnsafeNativeMethods.EnableWindow(HandleRef hWnd, Boolean enable)
at System.Windows.Interop.HwndHost.OnEnabledChanged, The parameter is incorrect) - probably because the window handle is either ending up null or invalid by the point the code executes. Thoughts? I don't want to remove the code, but right now I'm considering forking and just having a hack try/catch around it. the only other thought I had was to somehow add a boolean property to conditionalize setting the child.IsEnabled, but that seemed like major overkill.
James Willock
@ButchersBoy
Sep 22 2016 15:04
@shawnmanderson how reproducible is this?
I guess very rare :)
Shawn Anderson
@shawnmanderson
Sep 22 2016 15:27
@ButchersBoy its tough because it has to do with WinFormsHosts, old tech, and a combination of citrix remote deskop applications :) I could try to create an application that reproduces it, might be a weekend task
James Willock
@ButchersBoy
Sep 22 2016 15:27
Ooooh. Citrix and WinForms. Ha. Nasty combination.