Dominic Diascro, III wrote:
I'm running into a memory handle problem. My program implements a 5 column, 10
row table. If I start the program and run any of the counter functions
(there's a timer implemented), and then exit, it works fine. If I put the
cursor in any of the table fields and try to exit, I get the error:
MemoryMgr.c, Line:3670, Free Handle. If I tap into a table cell and then tap
out of it and then exit the program, it is fine.
I'm thinking I need to free the pointer for the cursor. That sound right?
Thanks.
To me it seems that you have to free your Memory Chunks on the exit of
your Program.
Do you use a MemHandleNew & MemHandleLock before you use the row in your
table?
If you do so you have to free it after your use.
I had the same problem you seem to have now. My memorychunks are global,
this isn't the
best way but it works fine for me. My Chunks are defined as array. For
every Chunk I
have a flag that shows me if the Chunk has to be freed when the Program
exits.
with regards
Christian Lindemeier
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/