You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been looking for a lot of solutions for archiving in Inno Setup, so luckily I found this project on github, it helped me solved my problem, but there is a small bug, I hope you can be fixed it. Thank you very much.
Describe the bug
I am writing the archive help functions with Win32 DLL, which will be used for InnoSetup in compressing and extracting files and folders. I'm having trouble exporting information about the process of compressing the folder out of the screen, which causes the program to freeze. Conversely, the information of the extraction process displayed on the screen works very well.
Expected behavior
When using "setProgressCallback", the program will freeze, the folder will not be compressed. If I don't use "setProgressCallback" but only use "setTotalCallback" and "setFileCallback", the program works well
Environment details (put an x in all the boxes that apply):
bit7z version:
v2.0
v2.1
v3.0
7-zip version:
v16.02
v16.03
v16.04
v18.01
v18.03
v18.05
v19.00
MSVC version:
2012
2013
2015
2017
Windows version:
Windows Vista
Windows 8
Windows 8.1
Windows 10
Architecture:
x86
x86_64
The text was updated successfully, but these errors were encountered:
Hi!
First of all, thank you for using bit7z and for having reported the issue!
Unfortunately, I still didn't manage to reproduce the bug and in my case the progress callback works without problems!
However, I didn't test in the exact same conditions you've reported: in particular, I've used MSVC 2017 (I don't think it is a compiler problem, anyway I'll test also the 2015 version) and I didn't test it by creating a dll (I will try if everything else will fail, maybe depends on that but I doubt it).
Just to be clear, the program freezes when compressDirectory is called and previously a progress callback was set, is that right?
Anyway, if you could try the following tests it would be really useful:
Check if global_total_size is non zero in the progress callback: it seems strange to me, but maybe the total callback is not called and hence a division by zero occurs (which may freeze the program under some conditions, crash it on others);
Check, if possible, the code of ExportProgressCallback and verify if there are some errors there.
Thank you very much for your feedback!
I have some personal work so now I can respond to you about this issue, so sorry about this. I will try the recommended methods and check the cases that I do without dll, I will temporarily close this issue if any problems arise please look forward to your help. Thank you for creating a very useful project!
I have been looking for a lot of solutions for archiving in Inno Setup, so luckily I found this project on github, it helped me solved my problem, but there is a small bug, I hope you can be fixed it. Thank you very much.
Describe the bug
I am writing the archive help functions with Win32 DLL, which will be used for InnoSetup in compressing and extracting files and folders. I'm having trouble exporting information about the process of compressing the folder out of the screen, which causes the program to freeze. Conversely, the information of the extraction process displayed on the screen works very well.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When using "setProgressCallback", the program will freeze, the folder will not be compressed. If I don't use "setProgressCallback" but only use "setTotalCallback" and "setFileCallback", the program works well
Environment details (put an
x
in all the boxes that apply):bit7z version:
7-zip version:
MSVC version:
Windows version:
Architecture:
The text was updated successfully, but these errors were encountered: