; qsort(@idList(), ListSize(idList()) + 1, SizeOf(idStruct), @Compare())
Code: Select all
ImportC ""
qsort(*base, num, size, *comparator)
EndImport
ProcedureC.i Compare(*a.idStruct, *b.idStruct)
If MemoryStringLength(@*a\name$) ;I have added to track the problem
If MemoryStringLength(@*b\name$) ; This throws IMAxess
Protected Result.i
Result = *a\Score - *b\Score
If Result = 0
Result = CompareMemoryString(@*a\name$, @*b\name$)
EndIf
ProcedureReturn Result
EndIf:EndIf
EndProcedure
[13:11:13] Executable type: Windows - x64 (64bit, Unicode, Thread, Purifier)
[13:11:13] Executable started.
[13:15:08] [ERROR] Invalid memory access. (read error at address 1430224109825)