Hi Chris,

At 11:13 AM -0500 3/31/05, you, Chris Faherty wrote:
I was wrong.  DmResizeRecord() calls MemHandleResize() and you can't have a
chunk size of 0, so I think it will fail.

It does not fail - I just tried. And in fact the DmResizeRecord() method works for Treo650 GSM AND also fixes the crash with the new SPRINT version. So I am now a bit confused...


DmAttachRecord() is fine to use NULL as the handle for the record.

* PARAMETERS:
* dbR - reference to open database
* *atP - desired index to insert record at, actual index on return.
* newH - MemHandle of new record or NULL (if NULL, record's localChunkID
* field will be set to zero in the record list)
* *oldHP - MemHandle of replaced record returned here (this record chunk
* is orphaned - dmOrphanOwnerID).

Where did you copy this from? I believe I looked up DmAttachRecord in the most recent PalmOS docs and did not find the note about passing a NULL pointer. Anyway, documented or not, doing so reliably crashes the new SPRINT Treo at next call to DmSyncDatabase().


Best regards,
--
Lukas Zeller ([EMAIL PROTECTED])
-
Synthesis AG, SyncML Solutions  & Sustainable Software Concepts
[EMAIL PROTECTED], http://www.synthesis.ch


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

Reply via email to