Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!mintaka!spdcc!Cthulhu!raisch From: raisch@Control.COM (Robert Raisch) Newsgroups: comp.windows.ms Subject: WARNING! Serious Memory Leak in MSWindows3.0 - BUG! Summary: A leak in system memory Keywords: windows microsoft memory leak BUG BUG BUG Message-ID: <1346@cthulhuControl.COM> Date: 4 Jun 91 17:10:00 GMT Organization: Control Technology Corp., Hopkinton MA Lines: 44 PROBLEM: Windows loses between 3 and 5 kbytes upon the *first* invocation of numerous programs. BEHAVIOR: Before I invoke WhiteWater Group's ACTOR programming language on an ancient IBM-AT with 2048K of memory, Windows reports 1112Kb free, (this included the invocation of Usher that I use instead of the PROGMAN.) I then invoke ACTOR and am told that I have some 488Kb free. Leaving ACTOR, Windows reports 1108Kb available. Re-invocations of ACTOR do *NOT* eat up any more memory. It has been reported to me that other applications will also eat up memory, ONLY UPON THEIR FIRST INVOCATION. THEORY: To the best of my knowledge, Windows saves window subclass structs and paint structs. Since the apps that I have used do not use paint structs, I *believe* that this problem is Windows not releasing window subclassing structs back to the memory pool. If this is true, this is a SERIOUS bug. PROOF: If someone with more time and expertise under Windows could create two simple programs, one that creates a new window subclass and then realizes a window of that type, and the second which then tries to realize a window of the same type, ONCE THE FIRST PROGRAM HAS ENDED, this would prove the theory. I would like to hear reports regarding this problem. And if someone more knowledgable than I in Windows programming could try to track this down, I would be very appreciative. Regards /rr (Robert Raisch, Manager of Software R&D, Control Technology Corp) -- "I ate his liver with some fava beans and a nice chianti." -Lector