[Insight-developers] large files on visual studio x64
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Mon Mar 7 05:17:31 EST 2011
Hi Maquette,
You should file a bug report, so we won't forget about that.
Regards,
Gaëtan
Le 5 mars 11 à 23:41, maquette a écrit :
> To the ITK 4 developers!
>
> If I understand right you work on the problems wich show when
> processing large images > 4GiB onVS 20XX platform in 64 bit mode.
> And the solution should be ready for ITK 4. right?
> I finally got a branch of ITK 3.20 to work with those amounts in
> RAM ...
> (see https://composight.svn.sourceforge.net/svnroot/composight/3rd/ITK/modified/InsightToolkit-3.20.0-1.0/
> )
>
> .. but now the next problem shows up:
> e.g. large MetaIO Images and probably other Image types can not be
> written because STL seekp() is broken in
> VS2008 and VS2010 (offsets are cast to long which makes it
> impossible to write large FILES > 4GiB), see
>
> http://connect.microsoft.com/VisualStudio/feedback/details/627639/std-fstream-use-32-bit-int-as-pos-type-even-on-x64-platform
>
> that bug is very old, and still sold to the VS users
>
> http://connect.microsoft.com/VisualStudio/feedback/details/286731/basic-filebuf-seekoff-impossible-to-seek-in-files-larger-than-2-gb
> (MS STL does not use _fseeki64() internally )
>
> So I checked in the ITK4 GIT today, if you already found a
> workaround, but in
> Utilities/metaImage.cxx
> MetaImage::M_WriteElementsROI()
> _fstream->seekp( seekoff, METAIO_STREAM::ios::beg )
> is still used. I just wanted to point this out, as I did not find
> any complaits yet about broken MS STL filestreams on this list :)
>
> greets, Benjamin
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr http://www.itk.org
http://www.mandriva.org http://www.bepo.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110307/2aaaaef9/attachment.pgp>
More information about the Insight-developers
mailing list