PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

(0x008D5ACC) CGapiToolFont::CreateFont in [Unknown file], li

hello,

I am using Entrek to debug memory usage in my GapiDraw 2.05 pocket pc application.
I have found an alarming number of events for
(0x008D5ACC) CGapiToolFont::CreateFont in [Unknown file], line 0
which mallocs significant memory.

Is there something gapiraw is doing internal that I dont know about? As far as I know I only call CreateFOnt once during CreateSurfaces.



As far as I know, I am only running CreateSurface(...) - a lot - whilst loading my sprite databse ( this happens only once during application initialisation)

Thanks,
joe
CreateFont allocates a few memory blocks for the kerning tables. If you call CreateFont multiple times, the memory is correctly released before it is reallocated. The memory allocated during CreateFont is also released in the class destructor.