This site requires JavaScript, please enable it in your browser!
Greenfoot back
nbarrell
nbarrell wrote ...

2015/2/22

My program was working, and all of a sudden it slowed down and gave me Java heap space errors.

nbarrell nbarrell

2015/2/22

#
I was writing a very long program where I basically try and recreate the battle portion of a pokemon game. It was working fine, until I added 5 pokemon variables and then it started crashing. Even when I delete these lines of code it no longer works. I tried to set breakpoints to debug it but nothing happens even when I place it on the first line. Can anybody provide an explanation/fix for this? Thanks.
lordhershey lordhershey

2015/2/22

#
Are you making any recursive calls in code? That can happen - would have to see offending code to know for sure.
nbarrell nbarrell

2015/2/22

#
The problem is that I'm reading in from files on my computer over and over again. I think I need to reconfigure my classes.
fejfo fejfo

2015/2/22

#
if your reading from fillies make sure u close the as well!
You need to login to post a reply.