Thanks for the reply Berk,<br><br><div class="gmail_quote">On Mon, Jun 9, 2008 at 9:35 PM, Berk Geveci &lt;<a href="mailto:berk.geveci@kitware.com" target="_blank">berk.geveci@kitware.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


I followed the reader in the debugger. It looks like the header of the<br>
u block is corrupt. The length of the array does not look right.</blockquote><div><br>Can you be a bit more specific? What is the length you read, what is it that you expect (in what binary format you expect the number 128)?  Well, the thing is I highly doubt that the data itself is corrupt, because it does work on some systems.  I might be wrong. Please read on. <br>

<br>First off, I did some more checks with whatever build I have access to. It turns out it is not just the Win32 build: <br><br>system / PV version / can load file 8x4x4.vti?<br>Linux (ubuntu hardy) x86_64 / 3.3.0 / yes<br>

Linux (ubuntu hardy) x86_64 / 3.2.1 / yes<br>MacOSX x86_32 / 3.2.1 / yes<br>Linux (ubuntu gutsy) x86_32 / 3.2.1 / no<br>Windows XP x86_32 / 3.2.1 / no<br><br>Based on this pattern, it seems to me quite unlikely that my data file is corrupt. Just in case here is how I encode the raw binary (although it is the simplest to use format, it is not a fully documented one and I had to ask for help here in the mail group and iterate a number of times to get it &quot;right&quot;): <br>

<br>[ header ] <br>&lt;AppendedData encoding=&quot;raw&quot;&gt; _<br>[Number of elements in the array, in 4 byte BIG ENDIAN integer]<br>[BinaryData with precision and endianness as specified in the header]<br>[ .. more of the same for each record..] <br>

&lt;/AppendedData&gt;<br><br>(note: there are no line breaks or any other extra space after `_&#39; in the actual file)<br><br>To discover (for it was undocumented) that a 4 byte number of elements should precede each record and should be a BIG ENDIAN integer regardless of the endianness of rest of the binary data was quite a thrill (to say the least!). Although there is still room in some mysterious way that I might be wrong with this discovery; this is what works in Linux 64bit builds for any file and all builds for small data (&lt;128 elements). Can someone please enlighten the situation? What is it with this data format? <br>

<br><br>thanks, <br>Levent<br></div></div><br>-- <br>Server Levent Yilmaz<br>Mechanical Engineering<br>University of Pittsburgh