From: "Fruber Malcome" <[EMAIL PROTECTED]>
> Does anyone know what the Sony equivalent to MemChunkNew is?
>
This is a standard Palm OS function.  I doubt Sony has
modified it.  It's also undocument and appears in the
headers as 'Low level allocation'.  I would have thought
that this was a clue that you were in dangerous territory,
but I guess it's easy to work from the headers without
realising what functions are more dangerous.

Although a fast search of the archive raised Keith Rollin
saying:
> ... This function is listed under
> Appendix A of the SDK 5 Palm OS Reference as being
> for System Use Only.

Remember.  The archives are your friend.

> When I use this API for a Sony device, it blows-up with no message. (In
the
> debugger, it just blows on the line).
>
> As an additional note, I don't get this when I am using this API for
> MemHeapId(0,0), but when using storage (0,1) - I blow up.
>
I might be missing something here, but isn't storage memory
protected?  Isn't that why the DmWrite, etc functions exist
that use semaphores?  I would expect serious problems on
a range of devices in trying to do this, although on actual
devices you can probably get away with it.

In a word: don't do it, it's wrong.

If you've come to Palm OS from another platform you need
to (at least) skim the Palm OS Companion section on
Memory.

Chris Tutty


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to