At 06:16 AM 4/20/2005, you wrote:
"Ben Combee" <[EMAIL PROTECTED]> a �crit dans le message de news:
[EMAIL PROTECTED]
> The only chunks of memory that won't ever move are:
>
> 1) a locked MemHandle
> 2) a pointer allocated using MemPtrNew/FtrPtrNew
> 3) a chunk of memory in the system ROM
>

I'm using callbacks when I capture an image with the cameralib and also when
I compress/decompress jpeg images. Are you telling that I should lock my
code resource or is it only for notification callbacks??
I've never seen that done in any of the cameralib sample codes.

You only need to manually lock your resources and protect your database if you're application isn't running at the time of the callback or notification. This is needed for using notifications to filter events when other programs are running, for example.



-- Ben Combee, Senior Software Engineer, palmOne, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_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