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.



-- 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/

Reply via email to