Modify ↓
Opened 9 years ago
Closed 9 years ago
#3524 closed Bug (No Bug)
_FileCountLines crashes program with "Error allocating memory".
| Reported by: | joon | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.14.2 | Severity: | None |
| Keywords: | Cc: |
Description
Trying to get the total line count of large text file using _FileCountLines function failed. Text file with about 1.4 million lines and 1.15GB in file size cause the program to crash. The program grows over 1GB in memory and crash.
Attachments (0)
Note:
See TracTickets
for help on using tickets.

This standard UDF isn't made for this purpose as it reads the whole file into memory and counts the LineFeed characters to determine the number of lines. In case you really need to know a total linecount for such a larger file, you need to write your own logic for that.
Come to the forum in case you want to have a dialog on this.
Jos