Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
Resource limitation issues in Windows Forms-based applications that are designed in Visual Studio 2005 or in Visual Studio .NET
Article ID: 894500 - View products that this article applies to.
You may experience resource limitation issues in Microsoft Windows Forms-based applications if the applications are built on the Microsoft .NET Framework 1.0 or on the .NET Framework 1.1. These resource limitation issues may occur when you run these applications on Microsoft Windows 9x-based operating systems. The following are the Windows 9x-based operating systems:
The .NET Framework 1.0 supports Windows 9x-based operating systems to their limits. The .NET Framework 1.1 supports the Windows NT-based operating systems to their limits. However, the limits for the operating systems are different. Therefore, if you design and build a Windows Forms-based application on a Windows NT-based computer, and then you deploy and run the application on a Windows 9x-based computer, the application may experience resource limitation issues.
When you stress-test these applications, you may receive the Win32 API "Error creating window handle" error message. Windows NT-based computers are limited to 10,000 Graphics Device Interface (GDI) handles per process. Windows 9x-based computers are limited to only 1,200 GDI handles for the whole system. In some versions of Windows, the limit is 640 GDI handles, and all applications must share these GDI handles. For example, the Japanese version of Windows Millennium Edition has a limit of 640 GDI handles. This problem may also occur in unmanaged C language-based applications.
To minimize the effect of the resource limitations, use one or more of the following methods:
Article ID: 894500 - Last Review: February 2, 2006 - Revision: 2.2