<br><font size=2 face="sans-serif">Hi all,</font>
<br>
<br><font size=2 face="sans-serif">Ok so the error I got was not about the nbRleSegments... I did not pay attention enough to the Dicom pdf...</font>
<br><font size=2 face="sans-serif">Nevertheless the following code still suffers from a slight problem:</font>
<br>
<br><font size=2 face="sans-serif">rleSegmentOffsetTable is declared as a 15 long array, and the filling loop (the one with ReadInt32) goes from index 1 to 15 included.</font>
<br><font size=2 face="sans-serif"><br>
>>       uint32_t rleSegmentOffsetTable[15];<br>
>>       for( int k = 1; k <= 15; k++ )<br>
>>       {<br>
>>          rleSegmentOffsetTable[k] = ReadInt32();<br>
>>       }<br>
</font>
<br><font size=2 face="sans-serif">If you start at index 1 and end at 15, then the rleSegmentOffsetTable should be allocated as a 16 long array and not 15, so that rleSegmentOffsetTable[15] is defined.</font>
<br>
<br><font size=2 face="sans-serif">>> TestReadWriteReadCompare was always failing on acuson RLE encoded images.<br>
>This is surely platteform dependant, because<br>
>gdcmbin/bin/gdcmTests TestReadWriteReadCompare<br>
>runs smoothly on my fedora core 2.<br>
>Additionaly on today's dashboard<br>
>http://public.kitware.com/dashboard.php?name=public<br>
>the only place were TestReadWriteReadCompare fails is on DarwinG5-g++<br>
>http://public.kitware.com/Public/Sites/midworld.kitwarein/GDCM-DarwinG5-g++/2004<br>
>1115-0830-Experimental/Test.html<br>
>but the ACUSON files are not the culprit ones:<br>
>http://public.kitware.com/Public/Sites/midworld.kitwarein/GDCM-DarwinG5-g++/2004<br>
>1115-0830-Experimental/Results/__Test_TestReadWriteReadCompare.html<br>
><br>
>Hummmmmmmm, what is going wrong here ?<br>
</font>
<br><font size=2 face="sans-serif">I still cannot answer that question... It seems that my Visual Studio 7.1 causes a lot of problems with gdcm...</font>
<br>
<br><font size=2 face="sans-serif">JM</font>
<br>
<br>