Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Error Creating Window Handle in Windows 7 Collapse All
Subject Author Date
Mark Matthews Jan 21, 2010 - 9:33 AM

Hello,


I’m seeing the following error when I close a child mdi window that contains a textbox/combobox in Windows 7:


 


System.ComponentModel.Win32Exception: Error creating window handle.

   at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)

   at System.Windows.Forms.Control.CreateHandle()

   at System.Windows.Forms.TextBoxBase.CreateHandle()

   at System.Windows.Forms.Control.get_Handle()

   at Elegant.Ui.TextBoxBasedControl.TextEditorContainerWndProc(Message& m)

   at Elegant.Ui.TextBoxBasedControl.TextBoxContainer.WndProc(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


 


Here are the relevant loaded assemblies:


mscorlib

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll


----------------------------------------

Elegant.Ui.Common

    Assembly Version: 3.1.0.0

    Win32 Version: 3.1.0.0

    CodeBase: file:///C:/Program%20Files/xxx/AR1000/Elegant.Ui.Common.DLL

----------------------------------------

Elegant.Ui.Ribbon

    Assembly Version: 3.1.0.0

    Win32 Version: 3.1.0.0

    CodeBase: file:///C:/Program%20Files/xxx/AR1000/Elegant.Ui.Ribbon.DLL


----------------------------------------

Elegant.Ui.Common.Theme.Office2007Blue

    Assembly Version: 3.1.0.0

    Win32 Version: 3.1.0.0

    CodeBase: file:///C:/Program%20Files/xxx/AR1000/Elegant.Ui.Common.Theme.Office2007Blue.DLL

----------------------------------------

Elegant.Ui.Ribbon.Theme.Office2007Blue

    Assembly Version: 3.1.0.0

    Win32 Version: 3.1.0.0

    CodeBase: file:///C:/Program%20Files/xxx/AR1000/Elegant.Ui.Ribbon.Theme.Office2007Blue.DLL


It works fine in XP and Vista on the same machine (different partitions).  I know .NET 2.0 is installed on the Win 7 partition


Any ideas?


Thanks

Peter Groft Mar 16, 2023 - 1:28 AM

The windows handle limit for your application is 10,000 handles. You’re getting the error because your program is creating too many handles. You’ll need to find the memory leak. As other users have suggested, use a Memory Profiler.

Regards,
Peter

Mark Matthews Jan 25, 2010 - 1:57 PM

That’s it - thanks!

Technical Support Jan 25, 2010 - 6:23 AM

Thank you for the test project. We confirm that it was the case in v.3.1. However in version 3.4 it is fixed. Version 3.4 can be downloaded from our website.

Mark Matthews Jan 22, 2010 - 9:33 AM

I have sent you a test project - thanks!

Technical Support Jan 21, 2010 - 12:12 PM

Thank you for reporting the problem. Unfortunately we failed to reproduce it. Could you send us a test project?