[Gdal-dev] Percent complete and jpeg driver

Frank Warmerdam warmerdam at pobox.com
Tue Mar 21 14:47:45 EST 2006


Garrett Potts wrote:
> Hello All:
> 
> I am using the progress function and have abort support.  When aborting 
> I return a value of 0 from the progress function and this does stop GDAL 
> CreateCopy from executing further.  For the jpeg driver it calls exit 
> internally since it was not able to read enough data.  Is there a way to 
> trap this through GDAL so it doesn't call exit but instead errors out 
> gracefully?

Garrett,

I have corrected the CreateCopy() in jpgdataset.cpp to *not* call
jpeg_finish_compress() if any sort of error (including user termination)
occurs and now interruption should cleanup and return gracefully.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org




More information about the Gdal-dev mailing list