> int vidange = DmWriteCheck( Data, 0 , size );
> DmWrite( HndLock, 0, Data, size );

DmWriteCheck isn't normally called directly. It is called automatically by
DmWrite. However, your direct call to DmWriteCheck is not equivalent to the
indirect call via DmWrite because you're passing the source address rather
than the destination address. When you call:
 
  DmWrite( HndLock, 0, Data, size );

it calls:

  DmWriteCheck( HndLock, 0 , size );

The first parameter to DmWriteCheck (and DmWrite) should be the start of a
chunk in the storage heap - typically a record. I don't know where Data
comes from, but I'm guessing it points into the dynamic heap.

Also, if you're going to call DmWriteCheck directly, be sure to check the
result. Otherwise, there's not much point.
--
Danny @ Palm

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

Reply via email to