On 01/21/2015 04:10 AM, "Nordlöw" wrote:
On Wednesday, 21 January 2015 at 12:00:47 UTC, Nordlöw wrote:
My executable throws as

    core.exception.InvalidMemoryOperationError@(0)

I've tracked it down to being caused by

     foreach (line; File(path).byLine) {}

when path contains a very large text file (392 MB, 1658080 lines).

Do I have any alternatives to this that doesn't trigger exception?

Known bug with a pull request:

  https://issues.dlang.org/show_bug.cgi?id=13856

Here is the duplicate of it, which I've opened recently:

  https://issues.dlang.org/show_bug.cgi?id=14005

Ali

Reply via email to