You have been a good help!  

And my only remaining question is, do you know of a way to test if a pointer
is still allocated to memory, so I don't try to free up empty pointers?


-----Original Message-----
From: Ariel Ayala [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 26, 2004 4:15 PM
To: Palm Developer Forum
Subject: Re: memory leaks...

Adam:

    I have not much experience, but I'm trying to help you the best I can.
    In the case of  global pointers, I don't know how are you doing to get
the pointers. In my case, I usually have the sequence:

MemHandleNew()
MemHandleLock()
MemHandleUnlock()
MemHandleFree() -look at the Palm OS reference for details of these
functions-

    Other posibility is to use:

MemPtrNew()
MemPtrFree()

    Furthermore, you can use 'MemPtrRecoverHandle()' function to get a
handle.

    i.e., in all cases I use a chunk of memory (locked or not), the most
rapidly I can, I unlock and free that chunk.

    Sorry for my poor English and I hope I helped you in anyway.

Ariel Ayala
Software Development
Corrientes - Argentina
----- Original Message -----
From: "Ornstein, Adam" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, April 26, 2004 3:52 PM
Subject: RE: memory leaks...


> Well one of my leaks is either coming from a bitmap that is on a form, or
> global pointers that I cannot figure out how to re-allocate... if you have
> any suggestions, I could use the help! Gremlins rule.
>
> Thanks
>
>
>
> Adam E. Ornstein
> Information Resource Specialist
> [EMAIL PROTECTED]
> (301) 427 - 1266
>
>
> -----Original Message-----
> From: Ariel Ayala [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 26, 2004 2:51 PM
> To: Palm Developer Forum
> Subject: Re: memory leaks...
>
>     I usually have Mem leaks in functions that set text to popup triggers,
> fields, etc (basically). A way that 'works' for me to detect them is run
the
> Gremlins tool of POSE, while debugging the app. And when MemLeaks are
> detected, see the log file generated (in the Emulator's directory, the
most
> recently modified 'log_XXXX.txt' file). This file shows the functions
calls
> stack, that generate the memory leaks.
>
> Ariel Ayala
> Corrientes, Argentina
> ----- Original Message -----
> From: "Ornstein, Adam" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Monday, April 26, 2004 10:30 AM
> Subject: memory leaks...
>
>
> >
> >
> > Hey,
> >
> > Does anyone have any suggestions as to where would be a good place to
> begin
> > searching for memory leaks?  I assume that they are similar to
> de-allocated
> > pointers, but I was wondering if anyone might be able to give me some
> > pointers.
> >
> > Thx
> >
> > --
> > 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/
>
> --
> 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/

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

Reply via email to