Owner IDs are freed up in SysAppExit, normally called by the runtime code linked
with your application after PilotMain exits (see the file StartupCode.c in your
Palm OS 3.1 Support/Libraries/StartupCode/Src directory, or the corresponding
file in the Palm OS 3.5 Support hierarchy, depending on what you're using). Have
you replaced your runtime code with something else that fails to call
SysAppExit?
-- Keith Rollin
-- Palm OS Emulator engineer
[EMAIL PROTECTED] on 07/19/2000 02:36:58 AM
Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
cc: (Keith Rollin/US/PALM)
Subject: SysAppLaunch and OwnerIDs !
Hi everybody,
I have a big problem when I try to call the "SysAppLaunch" function more
than 14 times !
In fact, during this call, the system seems to increment an 'Owner ID'
counter !? and never decrement it !
I saw that the OwnerID information was stored into the low nibble of byte
number 13 into the chunk structure, so this explains the maximum value of 15
!
When I call the application with the SysAppLaunch function I set the flags
to 'sysAppLaunchFlagNewGlobals' and I think that the system save the caller
context into chunk of memory !?
Before calling SysAppLaunch I allocate a nonmovable chunk - I set the Owner
Id for this chunk to the OS calling MemSetPtrOwner(ptr,0) - and I set the
flags to 'sysAppLaunchFlagNewGlobals'
In fact everything works well, except that at the 14th call to SysAppLaunch
the system says that "No more Owner IDs" and invite me to reset the Palm !!
If someone has any idea...
PS: I develop with CW DR6, CDK 4, MS VC++ 6 and Palm OS 3.1
Thanks in advance.
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/