Yes.  Since the storage memory is long-term and rather important if you want
to keep program on your app, you must use DmWrite when writing to it.  This
ensurses that you stay within the memory limits you're supposed to and don't
overwrite any other data.

When you read from the storage heap, there's no chance of overwriting data
and so you can do this directly.

--
Tim Kostka


"Marc A. Lepage" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm probably missing something very basic here, but I didn't see any
> obvious answers in the API documentation.
>
> I want to write to an existing resource I have open. Size is fine, I
> just want to change the data already stored there.
>
> I open it using DmGetResource and lock it using MemHandleLock to get a
> pointer. The data is there, I can read it fine.
>
> As soon as I put something in where that pointer is, I get "Fatal
> Exception".
>
> So presumably I'm going about this in the wrong way? Advice?
>
>



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

Reply via email to