Hi Jason "tempTxtInd" is initially zero and incremented by the no. of bytes wriiten to tempRecP.I am sure, it doesn't exceed the allocated memory . I have tyried using MemMove and MemSet operations too, but it gives an error of unallocated chunk of memory. Thanx Alagesh -----Original Message----- From: Jason Dawes <[EMAIL PROTECTED]> To: Palm Developer Forum <[EMAIL PROTECTED]> Date: Tuesday, February 29, 2000 12:25 AM Subject: Re: Error writing to memory >At 04:35 PM 2/28/00 +0530, you wrote: >>>"Alagesh" <[EMAIL PROTECTED]> wrote in message >news:3270@palm-dev-forum... >>> >>>> tempRecH = MemHandleNew( 3K ); >>>> bufferH = MemHandleNew( 8K ); >>>> if(bufferH != NULL && tempRecH != NULL) >>>> { >>>> tempRecP = MemHandleLock(tempRecH); >>>> buffer = MemHandleLock(bufferH); >>>> } >>>> >>>> Memory to hold the actual content and the buffer are allocated as above , >>>> But when I do the write operation as follows , >>>> >>>> DmWrite ( tempRecP, tempTxtInd, &buffer[i], sizeof(char) ) ; >>>> > >How do you calculate tempTxtInd? > > >-- >For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palm.com/devzone/mailinglists.html > > > > -------------------------------------------------------------- Robosoft Technologies, Mangalore, India -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palm.com/devzone/mailinglists.html
