Luis This should be fixed after
2012-02-03 09:50 UTC-0300 Luiz Rafael Culik <luiz at xharbour.com.br> * source/rtl/fssize.c ! fixed hb_fsFSize to properly return correct file size under windows Regards Luiz > Andi, Enrico, Ella: > > This is a complete mystery. > > Only if I build xHarbour on an XP SP3 (32-bit) box does > hb_fsize() seem to work as expected again. > > But building on an Windows 7 64Bit machine keeps giving > me those weird results. And I suspect there might be > other nasty stuff I'm not even aware of. > > For now I'll stick to building xHarbour on the XP box > until I have more time to figure out what's going on > with W7-64bit. > > If anyone could have an explanation of why the 64bit OS > is messing things up, I'd really love to hear from you. > > Regards, > > > On 01-02-2012 15:23, Andi Jahja wrote: >> 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 >> >> > > -- > Luis Krause Mantilla > lkrausem at shaw dot ca > luis_krause at hotmail dot com > "May the Source be with GNU" > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > 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-dev2 > _______________________________________________ > xHarbour-developers mailing list > xHarbour-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xharbour-developers > ------------------------------------------------------------------------------ Try before you buy = See our experts in action! 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-dev2 _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers