[Migrated content. Thread originally posted on 20 June 2006]
I have a strange problem. (problems are always strange until you recognise the problem)We have been forced to reboot the server of a customer every night. After a few hours working perfectly, suddenly the programs won't start. In the eventlog there is a message:
"A desktop heap allocation failed"
The programs are started like this. A program always running is starting other programs at the server with c$run command with a command-line wrun32 and the program name, very simple, but very handy. The programs started in this way always terminate after 1-2 minute's. So there is no other program that the program starting the others running all the time.
After some investigation I have found out, that the error was caused because there were no more heap memory. I realized that somehow we have a memory leak, and running for a period of time caused that there were no more free heap memory.
I have found microsoft's kb: http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q184/8/02.asp&NoWebContent=1
which shows how to increment the heap memory, but somehow I don't think that it is the right solution. I would rather find the memory leak, and that's the reason for making this thread.
Where is my memory leak? Have anybody else got problems with the heap memory? Maybe combined with the c$run command?
I have realized that shutting down my programs releases the memory, but asking acu, they have said, that there is no known memory leaks in the c$run command.
I don't know how my programming can make a leaking memory when they terminate. Terminating a program should empty the used heap memory.
Regards
Steen Jensen
datamann, Denmark



