<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV>I was able to open tiff files on WinCE with gdal 1.4.2, but now that I<BR>ricompiled gdal 1.5.1 for WinCE, I cannot read tiff files anymore. </DIV>
<DIV>I suspect the problem is due to the libtiff changes introduced with gdal<BR>1.5.0.<BR><BR>In gdal 1.5.1 when bsearch is called within TIFFFindField the value of<BR>tif-&gt;tif_nfields is initially 0. This causes bsearch to fail as the num<BR>parameter is 0. The bsearch used on WinCE is the one provided for the<BR>WinCe port (wcelibcex library).<BR><BR>I also tried to change the bsearch code of wcelibcex to return NULL when<BR>num is 0. The result is that now bsearch does not fail but I still have<BR>other errors returned from libtiff later in the code.<BR>The same file opened with the same code compiled for <SPAN class=yshortcuts id=lw_1207169136_0 style="CURSOR: hand; BORDER-BOTTOM: #0066cc 1px dashed">Windows XP</SPAN> works<BR>correctly.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any idea?<BR><BR>Regards,<BR>Marcello Ferrero<BR></DIV></div><br>

      <hr size=1>You rock. That's why Blockbuster's offering you <a href="http://us.rd.yahoo.com/evt=47523/*http://tc.deals.yahoo.com/tc/blockbuster/text5.com">one month of Blockbuster Total Access</a>, No Cost.</body></html>