Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!usc!apple!motcsd!hpda!hpcuhb!hpindda!eav From: eav@hpindda.HP.COM (Eugene Veteska) Newsgroups: comp.windows.ms Subject: Large dialog boxes eating memory Message-ID: <40130007@hpindda.HP.COM> Date: 21 Nov 89 22:24:16 GMT Organization: HP Information Networks, Cupertino, CA Lines: 26 Hi, I'm having problems with creating a big dialog box. If I create a big enough dialog box, when the box is displayed, most of my conventional memory is eaten up. I have no controls inside the box. As soon as the dialog box is moved, the conventional memory comes back to normal. I ran heapwalker before and after I have moved the box and I find that there is an ~89K non-discardable memory segment that is has been allocated by GDI. When the box is moved, this chunk of memory is freed. This happens on a modeless dialog box (haven't tried it on a modal one) and I can't seem to figure out why this occurs. The problem is when a different dialog box is brought up, Windows hangs or there isn't enough memory to bring it up. Has anyone else had or seen this problem. Here's a copy of my dialog box: TEST DIALOG LOADONCALL MOVEABLE DISCARDABLE 1, 7, 297, 203 CAPTION "Dialog" STYLE WS_BORDER | WS_CAPTION | WS_SYSMENU | WS_SIZEBOX | WS_POPUP | WS_VISIBLE BEGIN END Changing the style flags doesn't seem to help. If I make the box small enough (1, 7, 257, 153) this doesn't occur. Thanks for any help. Eugene Veteska HP Information Networks Division eav@hpindda.hp.com