0 Members and 1 Guest are viewing this topic.
09-02-10 16:21:53 [*] [Error] Test -> (AppOnIdle): Out Of Stack Range09-02-10 16:21:53 [*] [Error] Test -> (OnLeaveGame): Out Of Stack Range
What code is doing this?
I don't know for sure but it sounds like you've run out of stack space.
procedure QuickIntSort(var Field: array of string; Left, Right, SortBy: integer);var l, r, Pivot: integer; Buffer: string;begin if (Left < Right) then begin l:= Left; r:= Right; Pivot:= StrToInt(GetPiece(Field[(Left + Right) shr 1], #9, SortBy)); repeat while (StrToInt(GetPiece(Field[l], #9, SortBy)) > Pivot) do begin Inc(l, 1); end; while (StrToInt(GetPiece(Field[r], #9, SortBy)) < Pivot) do begin Dec(r, 1); end; if (l <= r) then begin Buffer:= Field[r]; Field[r]:= Field[l]; Field[l]:= Buffer; Inc(l, 1); Dec(r, 1); end; until (l >= r); if (Left < r) then begin QuickIntSort(Field, Left, r, SortBy); end; if (Right > l) then begin QuickIntSort(Field, l, Right, SortBy); end; end else begin exit; end;end;
Kinda reminds me of Out Of Range, but slightly different. Just point out the obvious