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)

Change History (1)

comment:1 by Jos, 9 years ago

Resolution: No Bug
Status: newclosed

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

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.