Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Out of memeory Error  RSS feed

 
Dhananjay Ghanwat
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!