d-mozulyov / Tiny.Library

General purpose low level library for Delphi 7-XE10, FreePascal and C++Builder
MIT License
81 stars 18 forks source link

TArray.Sort gives StackOverFlow exception? #7

Closed wxinix closed 3 years ago

wxinix commented 3 years ago

I use Tiny library and it appears TArray.Sort would give StackOverFlow error?

Recursion too deep; the stack overflowed Address = 01EC2FFC Top of stack = 01FC0000 ESP = 01EC23D4 Allocated = 01EC1000 Limit = 01EC0000 Reserved = 00002000

Code: C00000FD (EXCEPTION_STACK_OVERFLOW) Address: (00A59044){myapp.exe} [00E59044] Tiny.Generics.TArray.SortFloats + $0.

Any advice?

2021-05-31_7-35-51

d-mozulyov commented 3 years ago

Hello, Wuping Xin

Please, add a test project where you can reproduce the bug