View Rakesh Nair's profile on LinkedIn

Wednesday, June 16, 2010

"Error creating window handle"

Nothing related to banking, but something which my users keep complaining about.(Why me? Where are the network admin boys??)As an application developer, one could argue that anything outside the application is not his/her problem. But when we build windows applications, a lot of things help remind us that we don't live in an ideal world. 

"Error creating window handle" is one such thing. You can find the nerdy details here http://blogs.msdn.com/b/ntdebugging/archive/2007/01/04/desktop-heap-overview.aspx or simple steps below on how to increase desktop heap size:

  1. Click on Start - and in search type regedit and press enter.
  2. Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SubSystems\
  3. Make backup of your key! Click on File menu and choose Export. Give it a name and choose the destination. Click Save and there it is - a backup of your SubSystems reg key. Just in case you want the original key back.
  4. Doubleclick on Windows key in the right pane.
  5. In Value data field scroll left or right using arrow keys until you find this:
  6. SharedSection=1024,3072,512. Change 3072 into 4096 so it reads: SharedSection=1024,4096,512