Hi all:

As per subject, hb_fsize() isn't returning
the correct file size.

At startup, our app uses hb_fsize() to
verify sizes of some very small files
used for control purposes (semaphores).

These file range in size between 200 and
5000 bytes.

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!

The very few changes made to source\rtl\fssize.c
in the past 2 years don't seem to explain
the problem and I suspect the issue lies somewhere
else but I just can't figure out where exactly.

I've tested building xHarbour on an XP box as
well as a W7 64bit box using BCC 5.5.1 and the
results are the same (i.e. May 2011 build returns
the correct value; current CVS code fails).

Any ideas where the problem code might be?

-- 
Luis Krause Mantilla
lkrausem at shaw dot ca
luis_krause at hotmail dot com
"May the Source be with GNU"


------------------------------------------------------------------------------
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

Reply via email to