Hello,

I have solved (for the most part) my problems here.   It turns out that I
was not closing and removing the MathLib from my app.  I still have a small
weird leak, but the chunk overlock problem is gone with the following code
included.

MathLibClose(MathRef, &numapps);
SysLibRemove(MathRef); // this is a undocumented function. Dooh!

Hope this helps other people.

Jason

PS: I found this info buried deep in some .edu web site.


----- Original Message -----
From: "Randy Maxwell" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, August 16, 2000 3:06 PM
Subject: RE: Stumped, memory leak confirmed but can't find!


> Jason,
> Try:
> http://www.fifthgate.org/articles/palm_mem_leaks.html
>
> Regards,
> Randy Maxwell
>
> -----Original Message-----
> From: Jason Simpkins [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 16, 2000 12:35 PM
> To: Palm Developer Forum
> Subject: Stumped, memory leak confirmed but can't find!
>
>
> Hello,
>
> OK, I've been able to confirm a memory leak in my app, but it is not being
> caused by any of my
> memlock calls.   I set counters for every time I called a MemHandleLock or
> MemPtrLock and the corresponding Unlocks and it came out even every time.
> So thats not the problem.  I also added a FrmCloseAllForms(); and it works
> as advertised and closes my main form.  But I still have a 17 byte exactly
> memory leak somewhere, and its locked memory because that is the error I
get
> after 14 times launching the app.  I've used the debugger to isolate the
> error to a  MemLock call, but the exact location in the code that it is
> called is unknown because the de-coder is assembler.   I still have a
> suspicion that the FrmGotoForm call is Locking memory and not freeing it
> correctly.  Is there some way of clearing dynamic ram forcibly other than
a
> reset?
>
> Thanks,
> Jason
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>



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

Reply via email to