The information in this article applies to:
SUMMARYSometimes an application launched by either CreateProcess() or CreateProcessAsUser() fails, and one of the following error messages appears:
The failed process returns the exit code 128 or The failure is caused by one of the following:
MORE INFORMATION
Cause 1: The launched process does not have proper security access to the
Window station and desktop associated with the process.
Q165194 INFO: CreateProcessAsUser, Windowstations and DesktopsCause 2: The system has run out of desktop heap. Every desktop object on the system has a desktop heap associated with it. The desktop object uses the heap to store menus, hooks, strings, and windows. Windows NT allocates desktop heap from a system-wide 48-MB buffer. In addition to desktop heaps, printer and font drivers also use this buffer. Desktops are associated with window stations. A window station can contain zero or more desktops. By default, 3 MB of heap is allocated for any desktop associated with either an interactive or non-interactive window station. This setting can be changed through the registry. There are separate settings for desktops associated with interactive and non- interactive window stations. After the registry changes have been made, the system needs to be restarted. WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.
In SharedSection=1024,3072, 3072 represents the heap size for desktops
associated with the interactive Window station. Scan along the line until
you reach the part that defines the SharedSection values and add ",512"
after the second number. This value should now look something like the
following:
The 512 specifies the desktop heap for desktops associated with non-
interactive window stations. This tells the system to allocate 512 KB of
heap for each desktop.
After making this change, close Regedt32 and restart the server. Since, the system has approximately 48 MB of desktop heap for all desktops. A smaller desktop heap value will increase the number of desktops that can be created on a system, but this will limit the number of hooks, menus, strings, and windows that can be created in a desktop that is in a window station. On the other hand, a larger desktop heap value will decrease the number of desktops that can be created, but it will increase the number of hooks, menus, strings, and windows that can be created for a desktop. The minimum value that the heap can be set to is 128 KB. Any attempt to use a smaller value will default to 128. Additional query words:
Keywords : kbDLL kbKernBase kbNTOS400 kbWinOS2000 kbSecurity kbDSupport kbGrpKernBase |
Last Reviewed: January 10, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |