[Gdal-dev] Re: image data flushing (clean rebuild needed)

Andrey Kiselev dron at ak4719.spb.edu
Wed Apr 30 06:07:20 EDT 2003


Frank,

On Tue, Mar 18, 2003 at 01:11:23AM -0500, Frank Warmerdam wrote:
> Gillian was encountering a problem where some formats implemented on top the
> RawRasterBand and related classes were not properly fflushing data to disk
> when the GDALRasterBand::FlushCache() method was called.
> 
> To correct this I made the GDALRasterBand::FlushCache() method virtual and
> implemented it (to call VSIFFlussh()) for the RawRasterBand class.   As
> a result of changing the method to be virtual anyone updating GDAL from CVS
> should do a clean build (make clean; make).  Any change to the virtual
> function table requires a complete recompile.

I have found a problem with this method. Many raw datasets close image
file in dataset destructors and RawRasterBand::FlushCache() called for the
already closed file. Probably VSIFFlush() call should be moved to
IWriteBlock() method for those datasets which cause problems?



-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517



More information about the Gdal-dev mailing list