Hi, I am getting an Out Of Memory exception. Trying to read from Files. it is working fine till 50 files but then it gives this exception .Please help me out as it is very urgent Thanks
Adrian Yan
Ranch Hand
Joined: Oct 02, 2000
Posts: 688
posted
0
how big are the files? What's the memory space on your pc? Why do you have 50 files opened? That's usually a bad pratice to open all these files.
Hi Dhananjay, I'm guessing that you are getting this "OutOfMemoryError" due to the way you have written your code. But without seeing your code, I can't be sure. Of-course, the added bonus -- for you -- if you post your (problematic) code, is that I may be able to suggest something that will help you to get rid of that "OutOfMemoryError" -- assuming that you want to get rid of it, of-course! Good Luck, Avi.