I've got the following and I won't to know if it is the correct aproach to
handle the memory;
I'm freeing the memory in the correct way or it will last some becouse of
the static??
are there some other aproches?? (if I remove static I loose the pinter and
see garbage if I press
a hardkey.
Boolean eventHandler( EventPtr event)
{
static Char *buf;
[snip]
case frmOpenEvent:
buf=MemPtrNew(10);
[...]
StrIToA(buf,4);
CtlSetLabel(btnP,buf); // set label to button
handled=true;
break;
case keyDownEvent:
[...]
StrIToA(buf,5);
CtlSetLabel(btnP,buf); // set label to button
handled=true;
break; case frmCloseEvent:
MemPtrFree(buf);
break;
thanks.
Ingo Claro Fox
[EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/