question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash in DeactivateTaskbarFix

See original GitHub issue

I have daily users getting crash in the following method (I am not using directly ControlzEx but Mahapps)

  • ControlzEx : 3.0.2.4
  • Mahapps : 1.6.5.1
  • VS 2017
  • Framework 4.6.2
  • Windows 6.3.17134.0 (for this one but happens on multiple version)

Anything I can do to at least trap it and avoid a crash?

System.ComponentModel.Win32Exception: El identificador de la ventana no es válido
   en ControlzEx.Behaviors.WindowChromeBehavior.DeactivateTaskbarFix(IntPtr trayWndHandle)
   en ControlzEx.Behaviors.WindowChromeBehavior.HandleMaximize()
   en ControlzEx.Behaviors.WindowChromeBehavior.AssociatedObject_StateChanged(Object sender, EventArgs e)
   en System.EventHandler.Invoke(Object sender, EventArgs e)
   en System.Windows.Window.OnStateChanged(EventArgs e)
   en System.Windows.Window.WmSizeChanged(IntPtr wParam)
   en System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   en System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

2reactions
mgnslndhcommented, Jul 10, 2019

I get this as well but it seems like the WindowChromeBehavior class has been refactored because the DeactivateTaskbarFix is no longer there. According to @punker76 there will be a new release of ControlzEx as soon as the next version of MahApps is ready.

0reactions
mgnslndhcommented, Aug 30, 2019

You might want to make a branch and try to upgrade MahApps to latest alpha 2.0.0 and see if that works. You will get the new ControlzEx release then. Not sure how stable MahApps 2.0.0 alpha is. Maybe ask @punker76 if 2.0.0 is near release or unstable.

https://www.nuget.org/packages/MahApps.Metro/2.0.0-alpha0455

Read more comments on GitHub >

github_iconTop Results From Across the Web

Driver dies in wrong-way crash on I-540 in Raleigh - ABC11
Police confirm Roberto Erasmo Bartolon-Mendez was the driver who died in an early morning wrong-way crash on I-540 in Raleigh.
Read more >
2 people killed when SUV slams into forklift at high speed ...
Houston Police Department's Vehicle Crimes Division was called to Bellfort Avenue near Highway 288 for a crash that killed two people.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found