Hello Everybody.

I am doing following things

1) Using ExgDBWrite to convert a database(currently Word to go file) in memory 
to stream format,writing the result to a file stream

2) Use the net library protocol , to contents of that file stream to server

I can do that successfully , But when I see the content of file stream it 
taking data two times and lots of junk characters(exactly I dont know junk 
characters are due to erros or it coming due to some other reason).
I am using following code in ExgDbWrite and callback procedure 

fileStream = FileOpen(0,"tempFile",0,0,fileModeReadWrite,&err);
dbId =DmFindDatabase(0,"MeditabDoc"); //Contains 2 3 lines of text
if(dbId != 0)
   err = ExgDBWrite(WriteDBData,NULL,NULL ,dbId, cardNo);
FileClose(fileStream);  

//callback procedure
{
        Err err = errNone;
        FrmCustomAlert(Err1Alert,"dataP: ",dataP,NULL);
        *sizeP = FileWrite (fileStream,dataP, 1,*sizeP,&err);
        return err;
}
In between I get value of dataP as -1.
I am getting value two times in tempFile.
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to