Changes between Initial Version and Version 1 of Ticket #6911, comment 1


Ignore:
Timestamp:
Jun 3, 2017, 4:29:10 PM (7 years ago)
Author:
Even Rouault

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6911, comment 1

    initial v1  
    77For ex :
    88
    9 ds = gdal.Open('bla.tif')
    10 band = ds.GetRasterBand()
    11 ds = Null
    12 do garbage collection, ds could be finalized and the C++ dataset closed, but since band maintains a reference to ds, this won't happen.
     9{{{
     10ds = gdal.Open('bla.tif');
     11band = ds.GetRasterBand();
     12ds = null;
     13do garbage collection
     14band.GetXXXX()
     15}}}
     16
     17ds could be finalized at that point and the C++ dataset closed, but since band maintains a reference to ds, this won't happen.
    1318
    1419This is actually the issue we have with the Python bindings.