On Jun 15, 3:08 pm, timeless <[EMAIL PROTECTED]> wrote: > On May 31, 1:26 pm, Vineeth Aravindakshan > > <[EMAIL PROTECTED]> wrote: > > I want to check the available space on the disk...... > > this is how i am doing it............ > > > PRInt64 iSize = 0; > > nsCOMPtr<nsILocalFile> mFile; > > NS_NewLocalFile (path, PR_TRUE, getter_AddRefs (mFile)); > > mFile->GetDiskSpaceAvailable(&iSize); > > > I get the correct values on Windows......but on the linux the > > available disk space i get is 0. > > your first problem is that you igonred the rv from > GetDiskSpaceAvailable, that's a cardinal sin. > you also ignored the rv from NS_NewLocalFile, so your code can crash > when you try to use mFile. > > > Can anyone help me on this....... > > http://mxr.mozilla.org/seamonkey/source/xpcom/io/nsLocalFileUnix.cpp#... > > build --enable-debugger-info-modules and let us know what's happening. > > the most obvious potential problem is a lack of statfs. but it could > be something else.
No.......... I am checking the rv values............its always returns false on NS_FAILED( rv ) .............. _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
