[delphizip] Re: SuccessCnt bug

  • From: Roger Aelbrecht <Roger.Aelbrecht@xxxxxxxxx>
  • To: delphizip@xxxxxxxxxxxxx
  • Date: Fri, 16 Feb 2007 16:19:13 +0100

Rael Bauer wrote:
> Hi,
> It appears that if an Extract operation in cancelled (ZipMaster.Cancel := 
> True) SuccessCnt = 0. Should it not show count of files extracted?
> 
> Rael
> -----------
> To unsubscribe from this list, send an empty e-mail 
> message to:
>   delphizip-request@xxxxxxxxxxxxx 
> and put the word unsubscribe in the subject.
> 
> 
Not the way it is written now.
the extract operation is executed by the dll. When you set Cancel to 
True the dll execution is stopped and it is handled he same way any 
other interruption is handled.
The dll returns 0 which is the SuccessCnt and/or raises an exception.
Every exception is setting SuccessCnt to 0.


-- 
Roger Aelbrecht


-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.

Other related posts: