Hi,
found this article, could be helpful if someone more knowledgable programmer had a look at it.

http://support.microsoft.com/default...b;en-us;319740

It decribes a patch for Windows XP and why a memory leak occurs when destroying child windows.

Hope that helps,

SadOldGoth