[gdal-dev] Problem closing VRT GDALDataset *
Adeel Raza
adeel.raza at crc.gc.ca
Tue Jul 21 16:50:10 EDT 2009
Hi Frank,
OK - my next question then is: If I close the VRT dataset if it
references the MEM dataset using GDALClose(), would that operation also
close the MEM dataset or would I need to close the MEM dataset after I
close the VRT dataset?
Best Regards,
Adeel.
Frank Warmerdam wrote:
> Adeel Raza wrote:
>> Hi Frank,
>>
>> Thanks for the help. It seems like you were correct. When I
>> dereference the MEM dataset the post-decrement reference count is not
>> 0. My question is: do I not close the MEM dataset since its reference
>> count is not 0?
>
> Adeel,
>
> You should not be closing the MEM dataset while it is still referenced
> by the VRT dataset.
>
> Best regards,
More information about the gdal-dev
mailing list