I wrote a simple Threaded application that create a zip file with "zipper" (it uses events), but It has some problems;
It is meant to run only on Windows;
It just create a zip from a source directory (all the files in it), in the Main form there is a progressbar, a pair of labels and a ListBox;
it works, has not leaks, but sometime the progressbar or the other GUI elements in the Main form "freeze", but the thread itself is completed correctly and the zip created.
Attached there is a project based on my application in which I "stripped" the unnecessary elements, and this one seems to run correctly without GUI freezes, to reproduce what I mean it's sufficent to comment line 119 and un-comment line 120 in the Unit1 (line 120 is obviously incorrect, but it is useful to reproduce the issue), the output zip is in the project source dir, named "test.zip";
I hope someone has a bit of free time and can give a look, any help is really appreciated, thank you
Windows 7 64bit / Lazarus 1.8.4 / FPC 3.0.4