🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #238

Freeing USER data segment memory

#238
From: ddetws
Date: Wed, 08 Apr 1992 21:37
24 lines
1550 bytes
HELP!!!

I'm working on a Windows app that does not free system resources properly.
The GDI segment is OK, but my USER segment is growing. It doesn't seem
to grow larger the same amount each time. I looked for any MakeProcInstance
calls without FreeProcInstance calls, but this doesn't seem to be the 
problem. I only use one MakeProcInstance call, other than dialog boxes,
and save the pointer to a global variable. I FreeProcInstance when 
processing the WM_DESTROY message. ( Could this be the problem? My
app sure doesn't have any trouble finding the function. ) By the way my 
app loses 4 to 6K to the USER segment each time it is run and exited.
Does this sound like an application problem, or maybe a Windows (heaven
forbid!) problem?

Any hints or advice would be greatly appreciated. Post or E-Mail will
be fine.

Thanks in advance,

/**************************************************************************\
|             Tommy Sager                       P. O. Box 1792             |
|             ddetws@Arco.com              Odessa, Texas 79760             |
|           "Let's just assume it's Friday afternoon." - Unknown           |
\**************************************************************************/
Technical Details
Message-ID: <1992Apr8.213738.24213@Arco.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!tamsun!inetg1!ddetws

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!tamsun!inetg1!ddetws
From: ddetws@Arco.COM (ddetws)
Newsgroups: comp.windows.ms.programmer
Subject: Freeing USER data segment memory
Message-ID: <1992Apr8.213738.24213@Arco.COM>
Date: 8 Apr 92 21:37:38 GMT
Organization: ARCO Oil and Gas Company
Lines: 24