At 5:17 PM -0600 1/27/03, Jeff Wheeler wrote:
 >> The problem is that the inner block is leaked.  The OS
 doesn't know anything about it.
Cool.  So, it's not really a problem at all (with OS5 or anything else); the
two apps that are communicating with each other via the allocated memory
just need to understand how to delete memory to avoid leaks, eh?
Thanks for raising this point. At the moment, it's not a problem, or can be solved as you suggest. In the future, I think it will be a problem. In future OSes, the separation between applications may be more strict, such that the OS may be required to copy the data pointed to in the call to SysUIAppSwitch from one location -- or even address space -- to another. If that happens, any pointers to nested data will become invalid.

-- Keith Rollin
-- Palm OS Emulator engineer

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


Reply via email to