Has anyone found a work around for this memory leak ?

In the T5 simulator and the actual unit, the function:
void  FntDefineFont(fontID id, FontTag *pTag)
appears to have a memory leak, about 80% of the size of the
font being passed in,  who should I report this to ?    I'm not aware of any
API to
recover this,   it is not a leak in any other OS 3.0, 4.0 or 5.0 units or
emulators/simulators.

What happens if you call FntDefineFont(id, NULL) to clear out the font? I know that PACE used to have some code to release the shadow of the font when you did this.


One warning is that passing NULL would trigger an error (and potentially give you invalid results) on Palm OS 4.0, 4.1, and perhaps early 5.x releases.

-- Ken
--
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to