Memory problems

Tool for Search and Replace across multiple files.
User avatar
Rumbo

Memory problems

Post by Rumbo »

When I use TextCrawler with a 200 MB text file at first everything seems to work. The only suspicious thing is that TextCrawler reports a file size of only 90 MB in the upper window.

After searching the preview window below reports something like "Unable to show file, the argument Length must be 0 or above."

After some tries I get a System.OutOfMemoryException error.

Is there a buildt-in limitation? I still have 1.5 GB RAM left for TextCrawler to play with, 200 MB shouldn't be a problem?
User avatar
DV

Post by DV »

No built in limitation, but it does behave erratically with large files. Probably due to the way it processes the whole file in memory (this is to allow multiline regex tests across the entire length of the text).
I plan to add a line-by-line processing option to enable better handing of any size file.
User avatar
Fool4UAnyway

Post by Fool4UAnyway »

Or apply some maximum number of character limit to greedy expressions like .*. Who would want to look for a match greater than any number of MB's?
Post Reply