At 01:50 PM 6/9/2004, you wrote:
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".

Are you using DmWrite, DmSet, or DmStrCopy to write back to the handle? All resources are stored on the storage heap, so you can't write directly to the data.



-- Ben Combee, DTS technical lead, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/



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

Reply via email to