((SysAppInfoPtr) SysGetAppInfo(&appInfoP, &appInfoP))->memOwnerID;
returns 0 I tried to change 0 to 2, and did not see much difference... horace "Keith Rollin" <[EMAIL PROTECTED]> ???????:[EMAIL PROTECTED] A chunk owner ID of zero usually indicates that the system owns the block. If that's what "((SysAppInfoPtr) SysGetAppInfo(&appInfoP, &appInfoP))->memOwnerID" is returning, then your chunk ends up being owned by the system, and it can do with it whatever it wants (including delete it). A chunk owner ID of one usually indicates another system-related owner, but I don't remember exactly what. Chunk owner IDs for applications are usually in the range 2-15, with 2 being what application's usually get. Check to see how the value you are getting compares to that information. -- Keith > -----Original Message----- > From: Horace Ho [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 10, 2003 10:42 PM > To: Palm Developer Forum > Subject: Re: Allocate more than 64K of heap memory > > > I am not sure whether the ID is appropriate (I just follow > Aaron's code ;-) > How to check? I walked through the code via the debugger. Now I can > allocate memory size of bigger than 64K is a fact. > > horace > > > "Keith Rollin" <[EMAIL PROTECTED]> > ???????:[EMAIL PROTECTED] > > How are you checking that? Are you sure you're creating the chunk > with the appropriate ID, or are you just checking that it's created > at all? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
