🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1844

Re: OS/2 memory management (ARGH!)

#1844
From: Larry Salomon Jr.
Date: Wed, 11 Nov 1992 13:55
52 lines
2898 bytes
In <1b68f11e@p11.f9.n242.z2.fidonet.org> Roman_Grzondziel@freax.fido.de (Roman Grzondziel) writes:

>Hi there,

>I am having some problems with OS/2 2.0 lately. There seem to be some
>design (!) bugs in the system which seem to eat up the free store!
>An exaple:

>1.  start the system editor (e.exe)
>2.  select the "OPEN" menu and get the file requester
>3.  enter *.argh (so that it won't find anything that fits - don't forget
>    the wildcard!)
>4.  keep pushing the "OPEN" button.

>Now watch what is happening with your memory! After few clicks the
>system has only 512 kb free store left and begins to expand the swap file.
>It seems like you can fill up any partition (no matter how large) this
>way :) The memory is being freed but not before I quit the application.

>The same happens in every app (including mine) that uses the file
>requester! Is there *any* "good" reason for this bug??? (I consider this
>being a bug, of course :))

This is probably a bug in the file dialog.  Can some IBMer forward this to
Dave Bernath (DBERNATH at CARVM3)?  Thanks.

>Another annoyance: my program is using the PM interface, starting some
>separate windowed and not-windowed threads... I am not using any
>dynamic memory functions (like malloc etc.). But still, after playing
>with it for a while, I'm getting errors like "Maximum heap size reached"!
>(from one of the debugging hooks in my code). Sometimes the application
>quits right after this warning. While clicking around, I keep repeating the 
>same sequences that do *not* create any new memory objects nor any new items. 
>After a while, the memory status display starts showing increasingly shrinking 
>store. WHY?! But sometimes the error appears even before this happens! 
>AAAAAAAAAARGH!

>Can anybody give me a hint?! I would be *very* grateful for any help.
>I am getting crazy here searching for a (of course still possible)
>bug in my code and not being able to find anything wrong! HELP!

Remember that there could be things going on under the covers.  For example,
WinInitialize() calls DosR2StackRealloc() to increase the size of the ring 2
stack (or it did in 1.x).  The memory loss (I'll leave *that* one alone) could
be the result of something else you are doing.

Cheers,
Q
-- 
"If you choose not to decide, you  | "A fool and his money are fun to go
 still have made a choice" - Rush  |  out with" - seen on a T-shirt
------------------------------------------------------------------------
Technical Details
Message-ID: <1992Nov11.135504.7459@panix.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!news.ans.net!cmcl2!panix!os2man
References: <1b68f11e@p11.f9.n242.z2.fidonet.org>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!news.ans.net!cmcl2!panix!os2man
From: os2man@panix.com (Larry Salomon Jr.)
Subject: Re: OS/2 memory management (ARGH!)
Message-ID: <1992Nov11.135504.7459@panix.com>
Date: Wed, 11 Nov 1992 13:55:04 GMT
References: <1b68f11e@p11.f9.n242.z2.fidonet.org>
Organization: PANIX Public Access Unix, NYC
Lines: 52