Last Updated: 25 Jan 2019 17:33 by ADMIN
Created on: 19 Jan 2019 12:48
Category: Docking
Type: Bug Report
WPF Docking Win32Exception (Invalid window handle) when moving a floating window in MVVM project

After upgrading to Telerik WPF 2019.1.116 from 2018.3.1010 we receive a lot of:

System.ComponentModel.Win32Exception (0x80004005): Invalid window handle
   MS.Win32.UnsafeNativeMethods.GetWindowText(HandleRef hWnd, StringBuilder lpString, Int32 nMaxCount)

Exceptions. It makes out application very slow.

In version 2018 everyting was OK. See attached scerenshots.

Attached Files:
Vladimir Stoyanov
Posted on: 25 Jan 2019 17:33
Hello Roberto,

I already answered in the support ticket that you opened, however for completeness I will summarize our findings here as well. This way the information will be available for the community. 

We were not able to reproduce the exception on our side and we are uncertain what is the cause of the described exception. It seems to be reproduced only on certain setups. It also seems that enabling the " Enable Just my code" setting in Visual Studio prevents the exceptions on some setups. 

For the time being I am declining this bug report since we were unable to reproduce the scenario on our end. If you have any additional information that would help in doing so, please share it here or in the support ticket and we will gladly investigate.

Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Posted on: 22 Jan 2019 13:38
Problem only occurs when AutomationMode.Disabled and VS Enable just my code setting is unchecked.