RK,

   errP is a pointer; apparently it is pointing to location 0x42.  Try Err
error (to allocate space on the stack for the error return) and pass &error
in the FileOpen call.

Al
----- Original Message ----- 
From: "Rudra" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, November 06, 2003 8:38 PM
Subject: Re: Writing an XML file from an application


> Hi,
> What is the error in the following lines of code?
>
> FileHand out;
> Err *errP;
>
> out = FileOpen(0, "MyInfo.xml", 0, 0 ,
> fileModeReadWrite | fileModeDontOverwrite, errP);
>
> I am geting the following error.
>
> "MyApp just wrote to memory location 0X00000042, which
> is in low memory."
>
> Thanks,
> RK
>
> --- kcorey <[EMAIL PROTECTED]> wrote:
> > On Thu, 2003-11-06 at 17:25, Rudra wrote:
> > > I want to store some information from a palm
> > > application in XML format. Is it possible to write
> > out
> > > information from an application as an XML file?
> > > This XML file will then be read by an application
> > > running on a desktop.
> > > I have not found much information on files for
> > Palm
> > > OS.
> >
> > You can write whatever content you want to a file on
> > a memory card (SD
> > or Memory stick) with the VFS* functions and then
> > move the memory stick
> > to a card reader that would allow programs on the PC
> > to read the file.
> >
> > There's no built-in support for XML in the
> > system...you'll have to roll
> > your own, or use one of the pre-built libraries
> > that're out there.
> > Search the archives for more info on that.
> >
> > -Ken
> >
> >
> > -- 
> > For information on using the Palm Developer Forums,
> > or to unsubscribe, please see
> http://www.palmos.com/dev/support/forums/
>
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
>
> -- 
> 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