|
-
Jul 7th, 2011, 04:59 AM
#1
Thread Starter
Fanatic Member
Why I got System.OutOfMemoryException when using
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.
-
Jul 7th, 2011, 05:46 AM
#2
Re: Why I got System.OutOfMemoryException when using
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.
-
Jul 7th, 2011, 05:59 AM
#3
Thread Starter
Fanatic Member
Re: Why I got System.OutOfMemoryException when using
Memory for my application?
I bought a bunch of computers at 64 bits so I can handle large files.
Hmm... how to improve that?
-
Jul 7th, 2011, 06:04 AM
#4
Re: Why I got System.OutOfMemoryException when using
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.
-
Jul 7th, 2011, 06:13 AM
#5
Re: Why I got System.OutOfMemoryException when using
Have you actually specified that your application is compiled for 64 bit and not accidently set it to 32?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|