Application freezes.
Second sorting works (it is in comment - it is slow sorting only for a test).
If I have breakpoint on first QuickSort recursive calling (line 45), watching on variables l, hi, li, h is ok. Apolication shows invalid steps (jump to middle of QuickSort procedure) after breakpoint (push F8) on these values:
l=1
hi=1
lo=1
h=2
I do not understand it.
Application freezes. FSorted is still 0. Lines 46 and more are ignored.