dimmaq / omnithreadlibrary

Automatically exported from code.google.com/p/omnithreadlibrary
0 stars 0 forks source link

Deadlock when an empty list is provided for ForEach. #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Doing a ForEach(0, -1) will deadlock - This is common if a list is being 
processed and the code does "ForEach(0, List.Count - 1)...."

What is the expected output? What do you see instead?
The application not to deadlock. The application deadlocking.

What version of the product are you using? On what operating system?
V3.0.3, Windows 7/Delphi XE

Please provide any additional information below.

See attached TestUnit1.pas

Cheers,
Nick

Original issue reported on code.google.com by ring....@gmail.com on 17 Oct 2013 at 11:00

Attachments:

GoogleCodeExporter commented 9 years ago
Not good, I'll fix it ASAP.

Original comment by gabr42 on 18 Oct 2013 at 3:35

GoogleCodeExporter commented 9 years ago
Fixed in the SVN.

Original comment by gabr42 on 19 Oct 2013 at 4:26

GoogleCodeExporter commented 9 years ago
Nice job!

Original comment by ring....@gmail.com on 19 Oct 2013 at 7:14