G
Guest
I hope someone can help.
I have an application whose purpose is to suck files into memory and read
through them. These files can't be read sequentially. This has worked like
a charm for over a year... file sizes are anywhere from a few hundred bytes
to 50 MB.
Well, now i have to suck in files that could be larger than 300mb. I'm
getting out of memory exceptions on a server with 4gb of ram. When i watch
Task manager, the machine isn't even using half of its ram.
Last week I had to deal with a 130mb file and was able to get it to work by
forcing garbage collection (gc.collect), but now I'm stuck.
Any suggestions? Currently, I'm using a FileStream and StreamReader to read
the file into a StringBuilder using the StreamReader's '.ReadToEnd' method.
Any help is greatly appreciated.
Thanks
Corey
I have an application whose purpose is to suck files into memory and read
through them. These files can't be read sequentially. This has worked like
a charm for over a year... file sizes are anywhere from a few hundred bytes
to 50 MB.
Well, now i have to suck in files that could be larger than 300mb. I'm
getting out of memory exceptions on a server with 4gb of ram. When i watch
Task manager, the machine isn't even using half of its ram.
Last week I had to deal with a 130mb file and was able to get it to work by
forcing garbage collection (gc.collect), but now I'm stuck.
Any suggestions? Currently, I'm using a FileStream and StreamReader to read
the file into a StringBuilder using the StreamReader's '.ReadToEnd' method.
Any help is greatly appreciated.
Thanks
Corey