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
Aaron's code:
void *MemPtrNewLarge(Int32 size)
{
if (size > 65500) // the max MemPtrNew will give *g*
{
SysAppInfoPtr appInfoP;
UInt16 ownerID;
ownerID = ((SysAppInfoPtr) SysGetAppInfo(&appInfoP,
&appInfoP))->memOwnerID;
return MemChunkNew(0, size, ownerID | memNewChunkFlagNonMovable |
memNewChunkFlagAllowLarge);
} else {
return MemPtrNew(size);
}
}
"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/