I'm bulding myself an DataBase Utility object
And Im writing a Write method which just receive
The Ptr to the Data, the size of the data and
the index in the DB where to put it.

But when I try to write it, I always have a
DmWriteCheck failed error.

Here is the code that seems to be the problem.

( Everything at this point is validated, DataBase MUST be open
   in ModeReadWrite and all Handle and Ptr are also validated )

        HndLock = ( char* )MemHandleLock( tmpHand );
        DmWrite( HndLock, 0, Data, size );
        offset += size;

Where HndLock is my Locked handle to the Chunk
Data is a Ptr to a struct ( fixed size )
and Size is the size of Data's struct

Is there a problem with what Im doing ?

Please help me... :-((

Thanx in advance to everyone


-- 
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