No, I am not. This must cause me the problem. I'm confused though. Why to
resize if it has just been created using the right size parameter?

----- Original Message -----
From: "Tom Hoelscher" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, August 06, 2003 8:54 PM
Subject: Re: Variable record size


> Are you calling DmResizeRecord before writing the new (larger) data out?
> Make sure to use the handle returned by this function (if it's not NULL,
of
> course).
>
>
> -Tom
>
> > Hi all,
> >
> > I was trying to implement a simple database with records of variable
size.
> > Say, initially the database contained 5 records of 20,000 bytes each.
All
> > the initial records were created with DmNewRecord (DmOpenRef dbP, UInt16
> > *atP, UInt32 size) as appropriate, and size was 20000. Then the code
changed
> > to implement an additional size, say 30000, bigger then the first one.
At
> > this moment I started getting the "DmWriteCheck failed" error on attempt
to
> > write to a new, longer record. The problem has gone as soon as I deleted
all
> > the records in the database without reopening it . Now only the longer
size
> > seems to be available. Is it possible at all to implement a database
with
> > records of variable length? If yes, how?
> >
> >
> >
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/



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

Reply via email to