When I remove the FrmDeleteForm, I receive bus errors....  any other
suggestions?


---------
These leaks are due to having "save behind" set on a form that isn't 
properly closed.  Are you calling FrmCloseAllForms() in your 
ApplicationStop routine?  The other memory leaks may be related.  Oddly, 
this is from a FrmDoDialog call -- that should normally erase the form 
before exiting, but you still have to do FrmDeleteForm after the call 
completes.

-- Ben Combee,
-----Original Message-----
From: Ben Combee [mailto:] 
Sent: Wednesday, April 21, 2004 6:17 PM
To: Palm Developer Forum
Subject: Re: bitmap memory leaks

At 02:21 PM 4/21/2004, Ornstein, Adam wrote:

>Hi, I have a form with a bitmap on it as a splash screen (all specified in
>the resource file).  I thought that this wouldn't be a problem, that the
>system should automatically take care of the memory on that form...
>
>When I exit the program I get 4 memory leaks.  How can I go about
>re-allocting this memory before the program exits?
>
>
>---------------------
>========================================================
>0.000:  Relocatable chunk leaked at 0x000026C6, size = 40
>0.000:  Chunk allocated by:
>0.000:          WinCreateBitmapWindow
>0.000:          WinCreateOffscreenWindow
>0.000:          WinSaveBits
>0.000:          FrmDrawForm
>0.000:          FrmDoDialog
>0.000:          <Unknown @ 0x0004722E>
>0.000:          <Unknown @ 0x000471AE>
>0.000:          <Unknown @ 0x00046BF6>
>0.000:  Chunk contents:

senior DTS engineer, PalmSource, Inc.
    Read "Combee on Palm OS" at http://palmos.combee.net/


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

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

Reply via email to