[Mapguide-trac] [mapguide-trac] #2195: Method FileUtil::GetFileStatus() return false when proceesing file which size is bigger than 2^31
MapGuide Open Source
trac_mapguide at osgeo.org
Mon Dec 3 21:01:52 PST 2012
#2195: Method FileUtil::GetFileStatus() return false when proceesing file which
size is bigger than 2^31
-----------------------+----------------------------------------------------
Reporter: zhanga | Owner: zhanga
Type: defect | Status: new
Priority: low | Milestone: 2.5
Component: General | Version: 2.2.0
Severity: minor | Keywords:
External_id: 1470843 |
-----------------------+----------------------------------------------------
The behavior of system call _wstat in VC9 and VC10 is different when
handling file which size is bigger than 2^31.
In VC9, it returns 0. But in VC10, it returns -1. Then some checks will be
failed when opening a big file.
To fix this issue, we need to use _wstat64 instead of _wstat.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2195>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list