[Insight-developers] HDF5ImageIO test failures on Windows-64bit

Williams, Norman K norman-k-williams at uiowa.edu
Wed Nov 30 12:04:07 EST 2011


I don't know why that came up since I don¹t write a 'long long' data item
to the file in the test. On Windows 64, is there some difference in word
sizes from the other platforms?  Are regular 'int' and 'unsigned' types in
Windows64 64-bit?


At any rate, adding the specializations as in the patch below will make
sure that the exception isn't thrown.  I'd be interested to see whether
explictly supporting long long types in the driver will just flush out an
error later on.

diff --git a/Modules/IO/HDF5/src/itkHDF5ImageIO.cxx
b/Modules/IO/HDF5/src/itkHDF5ImageIO.cxx
index 7812152..fec8109 100644
--- a/Modules/IO/HDF5/src/itkHDF5ImageIO.cxx
+++ b/Modules/IO/HDF5/src/itkHDF5ImageIO.cxx
@@ -91,7 +91,9 @@ GetH5TypeSpecialize(unsigned int,
H5::PredType::NATIVE_UINT)
 GetH5TypeSpecialize(short,             H5::PredType::NATIVE_SHORT)
 GetH5TypeSpecialize(unsigned short,    H5::PredType::NATIVE_USHORT)
 GetH5TypeSpecialize(long,              H5::PredType::NATIVE_LONG)
+GetH5TypeSpecialize(long long,         H5::PredType::NATIVE_LLONG)
 GetH5TypeSpecialize(unsigned long,     H5::PredType::NATIVE_ULONG)
+GetH5TypeSpecialize(unsigned long long,H5::PredType::NATIVE_ULLONG)
 GetH5TypeSpecialize(unsigned char,     H5::PredType::NATIVE_UCHAR)
 GetH5TypeSpecialize(char,              H5::PredType::NATIVE_CHAR)
 /* The following 3 types are not implmented.  This comment serves




On 11/29/11 4:12 PM, "Xiaoxiao Liu" <xiaoxiao.liu at kitware.com> wrote:

>Hi Kent,
>
>Seems that the error  in
>http://www.cdash.org/CDash/testDetails.php?test=124947888&build=1772138
>is related the  unimplemented  "unsigned long long" case in
>itkHDF5ImageIO.cxx?  Or there is a special
>scenario in windows 64 we need to take special care of?
>
>Will you take a look?
>Thanks!
>
>-Xiaoxiao
>
>---------------------------------------------
>Xiaoxiao Liu, Ph.D.R & D Engineer
>Kitware Inc <http://www.kitware.com/>.
>
>Clifton Park, NYPhone: (518) 881-4924  or  (518) 371-3971 x124
>
>
>
>
>
>



________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________


More information about the Insight-developers mailing list