Unhandled exception in example45
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
Documentation, Standard units reference manual, Unit Sysutils, function GetDirs, node23.html
Example45 causes an unhandled exception (access violation) on my machine.
Reason: GetDirs returns the number of dirs, (stored locations 0 through count-1), so the loop displaying them should finish with index count-1 and not with count.
so replace line 18:
For I:=0 to Count do
by:
For I:=0 to Count-1 do
it's no big thing, wasn't sure whether I should actually mention it,
Additional information:
Reporter: Juergen Holtmann
EMail: juergen_holtmann at t-online dot de
Mantis conversion info:
- Mantis ID: 4407
- OS: WIN32
- Version: 1.0.6
- Fixed in version: 1.0.7