[gdal-dev] Possible bug: hard limit to the number of Datasets creatable in a Python process?

2012-08-14 Thread Michal Migurski
I'm experiencing a reproducible bug. I create new 258x258 pixel datasets like this: driver = gdal.GetDriverByName('GTiff') handle, filename = mkstemp(dir=tmpdir, prefix='dem-tools-hillup-data-render-', suffix='.tif') ds = driver.Create(filename, width, height, 1, gdal.GDT

Re: [gdal-dev] Possible bug: hard limit to the number of Datasets creatable in a Python process?

2012-08-14 Thread Even Rouault
Le mardi 14 août 2012 21:00:20, Michal Migurski a écrit : > I'm experiencing a reproducible bug. > > I create new 258x258 pixel datasets like this: > > driver = gdal.GetDriverByName('GTiff') > handle, filename = mkstemp(dir=tmpdir, > prefix='dem-tools-hillup-data-render-', suffix='.ti

Re: [gdal-dev] Possible bug: hard limit to the number of Datasets creatable in a Python process?

2012-08-14 Thread Michal Migurski
On Aug 14, 2012, at 12:37 PM, Even Rouault wrote: > Le mardi 14 août 2012 21:00:20, Michal Migurski a écrit : >> I'm experiencing a reproducible bug. >> >> I create new 258x258 pixel datasets like this: >> >> driver = gdal.GetDriverByName('GTiff') >> handle, filename = mkstemp(dir=tmpd

Re: [gdal-dev] Possible bug: hard limit to the number of Datasets creatable in a Python process?

2012-08-14 Thread Michal Migurski
On Aug 14, 2012, at 1:00 PM, Michal Migurski wrote: > On Aug 14, 2012, at 12:37 PM, Even Rouault wrote: > >> Calling ds.FlushCache() is not sufficient. In principle, if the dataset >> handle >> goes out of scope, it should be destroyed, so I suspect that it is not the >> case. Assigning None t