I'm looking through the Formats sample code to try to figure out the way preference panels work.
It includes a sequence where the name resource is loaded, locked, the pointer is passed to CtlSetLabel, and the resource is immediately unlocked (but never released).
That's almost certainly a bug. However, it wouldn't cause a problem in practice because that pref panel was in ROM, so the resource location would never change.
If I've interpreted this right: - I need to be keep the handle locked. - At some point after I unlock, I need to call DmReleaseResource().
Correct.
-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Fourm 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/
