<span style='font-family:Verdana'><span style='font-size:12px'>Hi,<div> </div><div><pre style="white-space: pre-wrap; word-wrap: break-word; width: 2273.03125px; margin-top: 0px; margin-bottom: 0px;">Changing the data type from "long" to "long long" is only part of the problem. </pre><pre style="white-space: pre-wrap; word-wrap: break-word; width: 2273.03125px; margin-top: 0px; margin-bottom: 0px;">
</pre><pre style="white-space: pre-wrap; word-wrap: break-word; width: 2273.03125px; margin-top: 0px; margin-bottom: 0px;">The functions used to read the file are also not capable of handling large files. Under Linux these functions have all been given given 64 bit interfaces, but under Windows OS they are still 32 bits (at least for VS2008).</pre><pre style="white-space: pre-wrap; word-wrap: break-word; width: 2273.03125px; margin-top: 0px; margin-bottom: 0px;">
</pre><pre style="white-space: pre-wrap; word-wrap: break-word; width: 2273.03125px; margin-top: 0px; margin-bottom: 0px;">I created my own version of vtkImageReader, where I used other (64-bit) file functions and I have have been using them allready for a few years without any problems. But I never submitted them to VTK, because I am not sure whether this solution also works on another OS or with other compilers, and I am also not able to test this.</pre><pre style="white-space: pre-wrap; word-wrap: break-word; width: 2273.03125px; margin-top: 0px; margin-bottom: 0px;">
</pre><pre style="white-space: pre-wrap; word-wrap: break-word; width: 2273.03125px; margin-top: 0px; margin-bottom: 0px;">But if you like, I can send you a copy. And if there is someone able (and willing) to test them on other operating systems (and compilers), it might also be nice to add them to the VTK distribution.</pre><pre style="white-space: pre-wrap; word-wrap: break-word; width: 2273.03125px; margin-top: 0px; margin-bottom: 0px;">
</pre><pre style="white-space: pre-wrap; word-wrap: break-word; width: 2273.03125px; margin-top: 0px; margin-bottom: 0px;">Regards, </pre><pre style="white-space: pre-wrap; word-wrap: break-word; width: 2273.03125px; margin-top: 0px; margin-bottom: 0px;">Leo.</pre><pre style="white-space: pre-wrap; word-wrap: break-word; width: 2273.03125px; margin-top: 0px; margin-bottom: 0px;">
</pre><pre style="white-space: pre-wrap; word-wrap: break-word; width: 2273.03125px; margin-top: 0px; margin-bottom: 0px;">
</pre><br /><span id="editor_signature"><span style="font-family:Verdana; font-size:12px">L van Ruijven<br />Functional Anatomy (ACTA)<br />Gustav Mahlerlaan 3004<br />1081 LA Amsterdam<br />Netherlands<br />Ph. +31(0)20-5980852 (out of office on friday)</span></span></div></span></span>