Hi, Is it planned that MemHandleResetLock becomes a documented function in OS5 ? It is really useful when trying to clean up (typically, unlock handles) in the catch block of an exception handler. Since it depends on where the exception was originally thrown, you can't always determine how many times some handles have been locked unless you write tons of code to trace each handle.
There is also a similar problem with SysQSort : if the callback you supply throws an exception, the temporary stack allocated in SysQSort is never freed, since control returns directly to your code. A very simple improvement would be that SysQSort catch the exception, clean up, and rethrow it. Pascal -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/