An excellent idea! And so obvious - so obvious that I would have never
thought of it.
Thanks,
Brian
> -----Original Message-----
> From: Steve Mann [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 07, 2001 12:33 PM
> To: Palm Developer Forum
> Subject: RE: Handles and pointers - basically interchangeable?
>
>
> >In my case, it's only a small amount of memory - 32 Booleans
> - and it would
> >be handy to have them set when the program starts, and
> survive during the
> >duration of the app running. So maybe a global array w/b
> appropriate. In
> >that case, I would guess that I should use a MemHandleNew
> for it, and lock
> >it only when I need to write to it (during AppStart,
> probably) or read from
> >it (just few places in the program), then MemHandleFree it
> when the app
> >terminates. Would you agree?
>
> If you're going to put it in global space, why not just have a global
> UInt32 with 32 1-bit fields stuffed in it. No memory
> allocation/deallocation.
>
> Regards,
> Steve Mann
> --
> -------------------------------------------
> Creative Digital Publishing Inc.
> 1315 Palm Street, San Luis Obispo, CA 93401-3117
> -------------------------------------------
> 805.784.9461 805.784.9462 (fax)
> [EMAIL PROTECTED] http://www.cdpubs.com
>
> --
> 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/