Re: [gdal-dev] C# OGR and memoryproblems.

2008-10-13 Thread Tamas Szekeres
2008/10/13 Hallgren, Johan <[EMAIL PROTECTED]>: > Let's see here. What are you meaning with "open-shared option" you're mention? > Creating the Dataset by using Gdal.OpenShared() for example. > We tried to use Dispose() on datasource but the program crashed immediately. > Then we used feature.

RE: [gdal-dev] C# OGR and memoryproblems.

2008-10-13 Thread Hallgren, Johan
: Hallgren, Johan Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] C# OGR and memoryproblems. Johan, Assuming you don't use the open-shared option the destructor of the object should destroy the underlying dataset. For the garbage collected environments (like .NET) it would be reasonable to

Re: [gdal-dev] C# OGR and memoryproblems.

2008-10-10 Thread Tamas Szekeres
Johan, Assuming you don't use the open-shared option the destructor of the object should destroy the underlying dataset. For the garbage collected environments (like .NET) it would be reasonable to put this mechanism into an earlier method like Dispose, however it would require some further invest

[gdal-dev] C# OGR and memoryproblems.

2008-10-09 Thread Hallgren, Johan
Hello We are using ogr to create a shapefile. We user C# as the development environment. We now have a problem that the process that runs the code doesn't release references to the shapefile. It's opened and created but there is no close function I could find. At the ogr-home-page I found OGRD