Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
Error Creating Window Handle
posted

I have a dialog that has several Infragistics controls on it - all 15.2 versions latest build.

The controls are mostly buttons, a check box, and a few text boxes.

My customers are getting the following error message but I cannot recreate it.  Unlike other messages, there are also no line numbers to steer me in the right direction.  Any ideas on what could be causing this?

Total Physical Memory: 4,207,882,240
Available Physical Memory: 1,525,956,608
OS: Microsoft Windows 8.1


System.ComponentModel.Win32Exception (0x80004005): Error creating window handle. at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp) at System.Windows.Forms.Control.CreateHandle() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.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)

Thank you in advance!

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    There's not much information here to go on. If your application is failing on CreateHandle, then it's most likely caused by a GDI memory leak. The Physical memory numbers you listed here aren't really relevant to that - you need to look at the number of handles created.

    In any case, this kind of thing generally happens if you application is creating a lot of windows or images and not properly disposing them. This could be something your code is doing, or it's possible it's a bug somewhere in the controls. But without being able to reproduce it, there's not much anyone can do to track it down.

    If it were me, I'd check the code for places where you are created, loading, or assigning images and make sure those images are properly disposed when they are no longer needed.

Reply Children