Hi Ben Combee,
Ben Combee wrote:
At 01:18 AM 7/30/2004, you wrote:
Thinking in another direction, is it possible to use owner ID of zero in an application? Then an application simply needs to switch to use the owner ID zero, before allocating memories which should persist after the application quits.
I am searching for the solution, since I have cases that I do not have access to the internal of the structure, but I want to persist them when the application quits, such as the SslContext.
I just looked into this for another developer. There is no supported method to change the current application's chunk owner ID, but it might be possible on OS 5 if you can get access to the application info structure in the OS, perhaps using the native version of SysGetAppInfo from a PNO using the native development kit from Igor Nestorov. I can't guarantee that this will work. I will note that having the SSL library use the current app's chunk owner ID is a design flaw of the library, but it's not something that's easy to fix, especially on deployed devices.
Thanks for the insight. I have never tried PNO, so it would take me a long time before I could try your approach. If you have any new update on this problem, please kindly share with us.
We would all appreciate if PalmSource would take into this problem and then release a patched SSL library. I know it's very difficult for this to happen, but it would certainly make more Palm applications SSL-aware.
Thanks again.
Tony Cheung
-- Ben Combee, DTS technical lead, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Palm OS Dev 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/
