[Gdal-dev] Percent complete and jpeg driver

Garrett Potts potts at cfl.rr.com
Tue Mar 21 14:53:07 EST 2006


Hello Frank:

Just updated the jpeg driver and tested the abort and it works great  
now.  Thank you again.

Take care

Garrett

On Mar 21, 2006, at 2:47 PM, Frank Warmerdam wrote:

> 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