🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #4008

GEM memory indicator?

#4008
From: Joe Gilray
Date: Wed, 13 Sep 1989 22:40
22 lines
1007 bytes
I'm creating a memory hungry GEM application and I would like to create a
memory bar chart on the screen.  One way I've thought of to do this is
to call Malloc(-1L) at program startup to get the total available space,
then call it during program operation (at appropriate times) to find
current available space.  Then space_used = total - current_available

Questions:

1) Is there a better way?

2) Would you do this in an event loop?  How would you control it?
   I.e if (memory_bar_is_not_covered_by_a_window
       && memory_using_event_has_occured)
           update_memory_bar(Malloc(-1));


Thanks for any help!

-Joe Gilray

	       
Technical Details
Message-ID: <11830053@hpldola.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcso!hpldola!jg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcso!hpldola!jg
From: jg@hpldola.HP.COM (Joe Gilray)
Newsgroups: comp.sys.atari.st
Subject: GEM memory indicator?
Message-ID: <11830053@hpldola.HP.COM>
Date: 13 Sep 89 22:40:48 GMT
Organization: HP Elec. Design Div. -ColoSpgs
Lines: 22