PC Review


Reply
Thread Tools Rate Thread

Application failed to initialize properly, desktop heap etc.

 
 
MortenB
Guest
Posts: n/a
 
      26th May 2005
We have trouble tuning Windows 2000 Server to support an application we
have developed.

The application runs as noninteractive service under a user account. The
service needs to create a large number of extra processes using
CreateProcess().

With the default (512KB) desktop heap setting for desktops associated
with noninteractive window stations we experience that processes fail to
initialize with the following well-known popup message displayed on the
console:

The application failed to initialize properly (0xc0000142)

This occurs after creating about 150 (console) processes. The
CreateProcess() calls do not fail.

Using the description in KB article 184802 we tune the third
SharedSection value from 512 to 2048. This makes it possible to start a
lot more processes under our service, but other services running under
user accounts fail to start initially because the total desktop heap
gets too large. Terminal Services is also enabled on the server, I
understand that this reduces the global 48MB buffer to approx the half.

- is there any way to monitor the usage of the global buffer used for
desktop heap?
- any suggestion on what resources is consumed by each process started
under the service and eventually leads to initialization failure? We
have experimented with running the service as LocalSystem user and
avoiding User32.dll but it still fails.
- on some servers there is a fourth value (512) listed after
SharedSection. What is this value used for?
- on some servers we often have the “application failed to initialize
properly” message displayed when we log out of the console, and this can
occur to any process (for example cmd.exe). It looks like this is not
connected to running the maximum number of processes under the service.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Atbroker.exe "application failed to initialize properly" on remote desktop to vista markm75 Windows Vista General Discussion 2 24th Jul 2009 10:09 AM
The application failed to initialize properly andy Windows XP General 3 2nd Nov 2005 12:51 AM
application failed to initialize properly =?Utf-8?B?dm9uYmxr?= Microsoft Access VBA Modules 0 4th Sep 2004 12:35 AM
application failed to initialize properly Kim Windows XP Performance 1 4th Aug 2004 09:45 AM
The application failed to initialize properly Amir Microsoft Windows 2000 Setup 0 1st Sep 2003 05:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:31 PM.