Dim output1 = System.IO.File.ReadAllLines(file).ToString
The file size is only 1 GB. My Page file is 128 GB. Why out of memory? It's 64bit system.
Printable View
Dim output1 = System.IO.File.ReadAllLines(file).ToString
The file size is only 1 GB. My Page file is 128 GB. Why out of memory? It's 64bit system.
It's a matter of how much memory can be allocated to your application. Check the Process class for some properties related to process memory usage. I don't think that there's another method specific to the current process but I've never tried so I'm not sure.
Memory for my application?
I bought a bunch of computers at 64 bits so I can handle large files.
Hmm... how to improve that?
Having a 64-bit computer has nothing really to do with your app's ability to handle large files unless you're talking about really enormous files. Even then, your app has the same default memory allocations. Read my previous post and use the information provided or don't.
Have you actually specified that your application is compiled for 64 bit and not accidently set it to 32?