64 bit problems (again)

Stef Desmet Stef.Desmet at esat.kuleuven.ac.be
Thu Jul 1 04:05:35 EDT 1999


Hi,

We are using VTK on different platforms and also on Digital Unix. I reported
earlier problems using long type variables which are implicitely assumed to have
a size of 4 bytes in the VTKXImageMapper.

Same problem now in the vtkTIFF{Reader and Writer}...
e.g. the function Swap4 get a long (==8 bytes) as input but only swaps 4
fread is done with sizeof(long) to read info from TIFF header which is stored
as a 4 byte int.

Is there any chance that VTK will be 64 bit compliant ??
What's the reason of this "overwhelming" use of long type variables ?

I can provide you with the adapted versions of vtkXImageMapper, vtkTIFFReader and vtkTIFFWriter.
I assume comparable problems in vtkBMP{Reader, Writer}  but till now never had to use this code.

Bye
-- 
Stef Desmet                                         
Katholieke Universiteit Leuven                      Tel. +32-16-321041
Departement Elektrotechniek - ESAT                  Fax. +32-16-321986
Centrum voor Beeld- en Spraakverwerking - PSI       Telex 25914 ELEKUL
Kardinaal Mercierlaan 94         eMail stef.desmet at esat.kuleuven.ac.be
B-3001 Heverlee Leuven    URL <http://www.esat.kuleuven.ac.be/~desmet>
B E L G I U M 
----------------------------------------------------------------------


-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list