implementation to avoid races, by using SetEvent instead of PulseEvent.
Attach a file by drag & drop or click to upload