🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #10668

CloseFonts() problems

#10668
From: Wayne Knapp
Date: Wed, 21 Dec 1988 19:01
23 lines
1169 bytes


I'm working on a program that makes massive use of fonts.  The problem
I have is that once a font is loaded into memory, it stays there forever.
I've tried other programs that use fonts and they also have the same
problem.  The code is correct according to the RKM but I haven't been
able to get it to work.

      .
      .
      textFont = OpenDiskFont(textAttr);
      .  
      . code to use font
      .
      CloseFont(textFont); 

Seemly the CloseFont() call dose not ever release the font from memory.
After using 20 fonts or so it is easy to lose over 100K of memory to dead
fonts hanging around.  I'm trying to do real-time effects with Text so
I really need all the memory I can get.  Dose anyone know what is wrong?

                                           Wayne Knapp
Technical Details
Message-ID: <3599@tekig5.PEN.TEK.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mailrus!purdue!decwrl!decvax!tektronix!tekig5!wayneck

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mailrus!purdue!decwrl!decvax!tektronix!tekig5!wayneck
From: wayneck@tekig5.PEN.TEK.COM (Wayne Knapp)
Newsgroups: comp.sys.amiga.tech
Subject: CloseFonts() problems
Keywords: Need the memory back
Message-ID: <3599@tekig5.PEN.TEK.COM>
Date: 21 Dec 88 19:01:29 GMT
Organization: Tektronix Inc., Beaverton, Or.
Lines: 23