Groups | Blog | Home
all groups > dotnet clr > october 2003 >

dotnet clr : Error Message: Error creating window handle.


decrypted
10/30/2003 9:45:36 AM
Some clients get this error. Not reproduceable....i understand that it
Windows runs out of resources...fine. All I want to know is where does
Microsoft publish information about what will work with the framework and
won't work? Example...how many controls can you have on a form/in your
entire application/loaded at the same time. What type of video drivers are
not supported by GDI? What known bugs are currently in the framework.

thanks
-dec

jstegmanONLINE NO[at]SPAM microsoft.com (
1/20/2004 5:11:45 PM

[quoted text, click to view]

These are tough questions to give an accurate answer to - they are OS and
environment dependent but the following information should help (from a
developer on the Windows Forms team):

On Windows NT / XP platforms, there is a per-process 10,000 handle window
limit (handle usually equals control), but an application should really try
to use less than half that limit to maintain good performance (good rule of
thumb: 5000 window handles is a huge application. It’s bigger than Visual
Studio’s resource usage by a factor of ten).

On Win 9X the limits are much more severe. There is a single 64kb heap
allocated to user resources on Win9x - a reasonable limit on Win9x is
probably around 200 handles. Some types of controls on Win9x take far more
resources: Win9X may crash unexpectedly after creating around 250 combo
boxes (independent of the framework - this is a Win9x issue). If you are
targeting Win9x, you need to be very frugal.

If you are doing a lot of GDI+ drawing, note that GDI+ does not have the
same resource limits on Win9x that GDI does. It will use the entire
process heap, and is therefore limited by available memory. GDI on Win9x
is like USER it has a hard 64kb limit.

GDI+ uses DirectDraw for software emulation. As long as the video card
supports DirectDraw, GDI+ should work fine. Note that some features in
Windows Forms: namely alpha-blended (layered) windows and chroma
transparency are all hardware features and many drivers have trouble with
these features. ATI drivers are notoriously bad with layered windows.

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

Joe Stegman
.NET Client Team
Microsoft Corp.

This posting is provided "AS IS" with no warranties, and confers no rights.

Atif
3/9/2004 10:36:08 PM
Joe! Please go through my post "Weired GDI+ and/or Layered Window Behaviour - Please Help!" on "microsoft.public.win32.programmer.gdi". I would appreciate if you can tell me how to fix this problem

Best Regards
jstegmanONLINE NO[at]SPAM microsoft.com (
3/10/2004 4:00:02 PM

[quoted text, click to view]
Behaviour - Please Help!" on "microsoft.public.win32.programmer.gdi". I
would appreciate if you can tell me how to fix this problem.

Someone has responded to your post - in addiiton, the folks on that
newgroups are more qualified to answer your GDI/GDI+ questions than I am.

Joe

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


Joe Stegman
..NET Client Team
Microsoft Corp.

This posting is provided "AS IS" with no warranties, and confers no rights.

AddThis Social Bookmark Button