Re: C++/File size on PPC by dave
dave
Wed Oct 29 05:06:06 CST 2003
> What did you pass as the folder parameter to GetDiskFreeSpaceEx?
empty string (returns same as any folder in the root)
> Which free space value are you using ?
lpFreeBytesAvailableToCaller
It returns 6.5 Mb free, I am writing the file out in blocks of 4096 bytes
(in a VNC client) on both the emulator and our IPAQ (WCE2002) the write
fails at 4.65 Mb - but if I close the file at that length and then try
writing another file (say 1Mb) there is no problem.
I didn't actually recheck the free space after the failed write, but if the
failed file is deleted and I check free space then it still returns 6.5Mb -
and being able to write the second 1Mb file would seem to indicate that the
free space value is correct.
"Jeremy Sherrill" <jeremyinbox@hotmail.com> wrote in message
news:##8$w4XnDHA.2312@TK2MSFTNGP12.phx.gbl...
> What did you pass as the folder parameter to GetDiskFreeSpaceEx? Which
free
> space value are you using? lpFreeBytesAvailableToCaller is the one you
> should use when determining how large your file can be. If you are
writing
> to a FAT volume, it should not lie about free space. Did you try checking
> free space after the write failed?
>
> Jeremy
>
> "dave" <dave@parystec.demon.co.uk> wrote in message
> news:bnliso$in$1$8300dec7@news.demon.co.uk...
> > Hi, I seem to be having a problem writing large files on the PPC.
> > GetDiskFreeSpaceEx reports 6.5Mb free but whenever I try writing a large
> > file the write fails at around 4.65Mb on both the emulator (EVC 3) and
our
> > PPC (WCE2002). I looked through the help and the only reference to file
> size
> > would seem to indicate an upper limit of 32Mb for WCE2002. Anyone any
> ideas
> > ?
> >
> >
>
>