Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetProgressCallback shows insufficient space available if format is set to UDF #2

Open
GoogleCodeExporter opened this issue Nov 20, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. I used your example shown at progdigy related to progressbar but instead of 
7zip format I tried to uncompress an ISO image

with CreateInArchive(CLSID_CFormatUdf) do
  begin
    OpenFile('d:\myiso.iso'); //udf iso 
    SetProgressCallback(nil, ProgressCallback);
    ExtractTo('e:\'); //a pendrive
  end;
2. If progressbar is not used, then it works as expected.
3. BTW: program becomes unresponsive.

What is the expected output? What do you see instead?
Progressbar working, but I only see error.

What version of the product are you using? On what operating system?
1.2

Please provide any additional information below.
Thanks by advance. Great component. I'm using Delphi 7.

Original issue reported on code.google.com by [email protected] on 24 Mar 2012 at 7:38

@GoogleCodeExporter
Copy link
Author

The demo is incorrect. (VCL-components are not thread-safe)

Attached is a demo on how it could work, idea taken from the JCL.
Unfortunately still the progress doesn't really work right that way - but 
better than a crash.

Cheers,
Ralf

Original comment by [email protected] on 17 Apr 2012 at 10:16

Attachments:

@GoogleCodeExporter
Copy link
Author

Thanks kiteralf, it works nicely now. I just added an animated progress bar to 
let users know that it is working in background. ;)

Original comment by [email protected] on 26 Dec 2012 at 9:36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant