G
Guest
I am opening a number of large files (100 to 900 Mhz) to extact some header
information (500 bytes). watching the memory usage on the task bar when ever
the call Filestream fs = File.Open(filename, Filemode.Open) is called, the
memory usage jumps way beyond that expected (89 Mhz file usage jumps by 400
M). I then use a few fs.Read calls to extract the info required then call
fs.Close and fs.dispose. The memory usage still remains high which can cause
problems as if the number of files checked is large the machine complains
about the amount of memory not available.
Is thier a way to reduce the amount of memory required, surely then amount
of memeory required should be a few bytes as I only require a pointer to the
file.
With thanks.
information (500 bytes). watching the memory usage on the task bar when ever
the call Filestream fs = File.Open(filename, Filemode.Open) is called, the
memory usage jumps way beyond that expected (89 Mhz file usage jumps by 400
M). I then use a few fs.Read calls to extract the info required then call
fs.Close and fs.dispose. The memory usage still remains high which can cause
problems as if the number of files checked is large the machine complains
about the amount of memory not available.
Is thier a way to reduce the amount of memory required, surely then amount
of memeory required should be a few bytes as I only require a pointer to the
file.
With thanks.