I tried to implement something like a videoplayer in my project. It's a class that grabs pictures out of a folder and changes it's image to that picture, 25 times a second (25fps). Everything worked fine.
But, if i export that scenario as a jar-file, the used memory incrases from 67.000kb to 315.000kb (!) within 10(!) seconds. Then, the scenario stops itself and everytime i press start, it instantly stops itself again and again.
I dont know why that happens, and i cant use the debug tool, since, when i test it within greenfoots IDE, everthing works fine. I think its because the garbage collection does not delete the images in sutch a short time, but i can not delete them manually either.
really dont know what i can do T.T
![Twitter](/assets/twitter-4e19209ef84344ee0c433f4c7bad8d49.png)
![Twitter.hover](/assets/twitter.hover-1fb19a5bafc50deace8f88eaec867845.png)