[Gdal-dev] C# Dataset not calling GDALClose()?

Ari Jolma ari.jolma at tkk.fi
Wed Jul 11 05:19:48 EDT 2007


Richard Matsunaga kirjoitti:
> On a related note, I see that the Dispose() method for DataSource 
> ultimately calls the OGRReleaseDataSource() method. Shouldn't this be 
> calling OGR_DS_Destroy() instead? The latter method is the one I used 
> in the hand-rolled C# wrapper class.

I've got no deep knowledge on this, but looking at ReleaseDataSource() 
in ogr/ogrsf_frmts/generic/ogrsfdriverregistrar.cpp it seems the right 
thing to call. It closes and destroys the datasource object.

Ari

>  
> Richard
>
>     ------------------------------------------------------------------------
>     *From:* gdal-dev-bounces at lists.maptools.org
>     [mailto:gdal-dev-bounces at lists.maptools.org] *On Behalf Of
>     *Richard Matsunaga
>     *Sent:* July 10, 2007 11:59 PM
>     *To:* gdal-dev at lists.maptools.org
>     *Subject:* [Gdal-dev] C# Dataset not calling GDALClose()?
>
>     Tamas,
>      
>     Shouldn't Dataset.Dispose() be calling GDALClose()? I'm trying to
>     track down a resource issue and wondering if this is a potential
>     problem?
>      
>     Thanks,
>     Richard
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev


-- 
Prof. Ari Jolma
Geoinformaatio- ja paikannustekniikka / Geoinformation and positioning
Teknillinen Korkeakoulu / Helsinki University of Technology
tel: +358 9 451 3886 address: POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma





More information about the Gdal-dev mailing list