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 investigation to implement such code properly, you could submit a ticket with this problem anyways.
You could also test this issue by forcing the collection by using the GC.Collect() API. Best regards, Tamas 2008/10/10 Hallgren, Johan <[EMAIL PROTECTED]>: > 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 OGRDataSource::DestroyDataSource( poDS ); , it > meybe can help me but I can't find any similar thing at the C# api. > > Anyone knowing what causes that problem. > > br > Johan > > Johan Hallgren > Logica > Pelle Bergs backe 3 > Box 1938, 791 19 Falun > Tel (och mobil): 023-547 46 (int: +46-2354746) > [EMAIL PROTECTED] > http://www.logica.se > > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev > _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
