Skip to content

Commit

Permalink
Fix runtime exception
Browse files Browse the repository at this point in the history
The OverflowException here depends on the amount of memory the EVE Online client is using. (Bots use this method for the first memory reading per game client process.)

As reported by dotpixel and Praevalidus at Viir/bots#4
  • Loading branch information
Viir committed Jan 20, 2020
1 parent 1adbf5f commit 1005241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion implement/read-memory-64-bit/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ void logLine(string lineText)

} while (true);

logLine($"Found {committedRegions.Count} committed regions with a total size of {committedRegions.Select(region => region.content.Length).Sum()}.");
logLine($"Found {committedRegions.Count} committed regions with a total size of {committedRegions.Select(region => (long)region.content.Length).Sum()}.");

return (committedRegions.ToImmutableList(), logEntries.ToImmutableList());
}
Expand Down

0 comments on commit 1005241

Please sign in to comment.