That's what I assumed I did here... do you notice something wrong? I know
I'm close :-)
// Move the rest of the record
offset = (field - (CharPtr)src) + StrLen(data) + 1;
ptr = field + StrLen(field) + 1;
bytes = size - (ULong)(ptr - (CharPtr)src);
if(bytes)
DmWrite(src, offset, ptr, bytes);
--
Tim Astle
Luca <[EMAIL PROTECTED]> wrote in message news:8831@palm-dev-forum...
>
> The Dm writing functions give you this error when you try to write beyond
> the bounds of the memory chunk. Make sure the handle is big enough for
what
> you're writing. When you're resizing the handle for your string, are you
> taking into account the terminating character?
> ie. char a[] = "hello"
> StrLen(a) gives you 5, but the actual size of the string is 6
> since a = { 'h', 'e', 'l', 'l', 'o', '\0' }
>
>
> ----- Original Message -----
> From: Tim Astle <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> To: Palm Developer Forum <[EMAIL PROTECTED]>
> Sent: Wednesday, April 19, 2000 8:43 AM
> Subject: DmWrite Error
>
>
> > Can someone give me an idea as to what could be causing this error?
> >
> > Fatal Error
> > DataMgr.c Line:6294,
> > DmWrite:DmWriteCheck
> > failed
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html