Luis, But still, your example shows the correct value here.
Andi On Wed, 01 Feb 2012 14:52:37 -0800 Luis Krause Mantilla <lkrau...@shaw.ca> wrote: > Andi: > > Here's a quick sample (I'm guessing the problem > has to do with very small files): > > // --- > Function Main() > Local cWinDir := GetEnv( "windir" ) + "\" > > cls > > ? "Win.ini size", hb_fsize( cWinDir + "win.ini" ) > > Return Nil > // --- > > With the current xharbour (build 9425) code > it returns a negative value!: > > Win.ini size -544210944 > > > With build 9380, the correct value: > > Win.ini size 478 > > > Maybe there's some -D value that needs to be set > when building xharbour that I'm unaware of.... > > > This is the actual size info: > > A 478 16-07-2011 15:23 win.ini > > > > On 01-02-2012 13:30, Andi Jahja wrote: > > Hi Luis, > > > >> > >> If I build with an xharbour from May 2011 > >> I get the correct result of 3120 bytes. Now that > >> I'm trying to test the current code from > >> CVS the same file now returns the very odd > >> size of 1110179840 bytes! > > > > I can't reproduce the problem here (BCC551 WinXP SP3), IOW HB_FSIZE > > returns correct value. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers