Make sure the proper object handle is given to windows semaphore primitives.
Attach a file by drag & drop or click to upload