Modify ↓
Opened 8 years ago
Closed 8 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)
Change History (1)
comment:1 Changed 8 years ago by Jos
- Resolution set to No Bug
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
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