Hi,
   I'm learning to develop for Palm using prc-tools and
gcc. I've created a "normal" program, but when I load
the first form I get three mem leaks from the emulator.
The log looks like this:

0.000:  Relocatable chunk leaked at 0x00004C9C, size = 40
0.000:  Chunk allocated by:
0.000:          WinCreateBitmapWindow
0.000:          WinCreateOffscreenWindow
0.000:          WinSaveBits
0.000:          FrmDrawForm
0.000:          <Unknown @ 0x00049CDA>
0.000:          PrvSendEventToForm
0.000:          FrmDispatchEvent
0.000:          <Unknown @ 0x00049E14>
0.000:          <Unknown @ 0x00049E5A>
0.000:          <Unknown @ 0x00049C7E>
0.000:  Chunk contents:

...

  But I'm using neither MemPtrNew() nor MemHandleNew().
I'm just loading the form using FrmGotoForm() in
PilotMain(), setting a handler to the form with
FrmSetEventHandler() in the ApplicationHandleEvent() and
implementing a very simple handler which looks like this:

static Boolean frmSenhaHndEvt(EventPtr evt)
{
    Boolean handled = false;
    FormPtr frm;


        switch (evt->eType)
        {
                case frmOpenEvent:
                        frm = FrmGetActiveForm();
                        SenhaFormInit( frm );
                        FrmDrawForm ( frm );
                        handled = true;
                        break;
                default:
                        handled = true;
                        break;
        }

        return handled;
}

  So, does anyone knows what's wrong?

Thanx,
Ac�cio.


__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - � gr�tis!
http://antipopup.uol.com.br/



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

Reply via email to