Tomas,<br><br>I don't see any changes that could lead to infinite loops or memory leaks recently.<br>If you can provide a sample dataset that gives this error please raise a ticket at <a href="http://trac.osgeo.org/gdal/newticket">http://trac.osgeo.org/gdal/newticket</a><br>
<br><div class="gmail_quote">On Tue, Jul 6, 2010 at 6:43 PM, Tomas R <span dir="ltr"><<a href="mailto:monshi@home.se">monshi@home.se</a>></span> 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 add - perhaps a problem with my comilation of Gdal. Note when I compile the GdalReadDirect.cs as it is and run it the result differs from the result of the GdalReadDirect.exe found in Swig\Csharp.<br>
The latter gives the Raster dataset Paramets and runs until an Out of memory Exception. Mine hangs and I have to abort it.<br>
<br>
What have I done wrong this time?<br>
<br>
Will try to recompile gdal and see if anything changes.<br><font color="#888888">
<br>
Tomas R skrev 2010-07-06 14:16:</font><div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a problem with RIK-maps and Gdal 1.7.2.<br>
<br>
If I use Gdal 1.6.1 I have no problem reading the map but doing the same with Gdal 1.7.2 my whole plugin/software hangs.<br>
<br>
I have identified that Gdal stops at the line<br>
<br>
band.ReadRaster(x, y, width, height, r, width, height, 0, 0);<br>
<br>
where x, y, width and height are controlled to be within the image to load.<br>
This line taken from the routine<br>
private void SaveBitmapPaletteDirect(...)<br>
from the C# samples. I have adapted it to load only a portion of the map into a bitmap.<br>
<br>
I have compiled Gdal myself, perhaps a problem with the compilation? Do I miss the RIK-driver or something? Or is there an error in Gdal? Or perhaps in the file(s)?<br>
I have no problem opening and getting the properties of the file, i.e. coordinate system and alike. It is when I try to read the file that Gdal hangs.<br>
<br>
I get no Exception, it just hangs and eats CPU-time.<br>
<br>
I compile the C# sample GDALReadDirect.cs from Gdal 1.7.2 and adapt it to read a portion of a big RIK file (500x500 pixels) and it stops at the same point in code. Error in the driver for RIK perhaps? or error in the sample code?<br>
<br>
Yours<br>
Tomas<br>
</blockquote>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>