Re: BufferedImage problem
I have no idea what may be causing your problem, sorry. :(-:
Have you considered using a profiler to see what is happening to your program's memory structure while its running?
Re: BufferedImage problem
I have. Like I said, no problems at all when using netbeans. Next thing i have tried was writing to .txt when running jar file to check where the code stops, and it is exactly at :
Code:
image = ImageIO.read(input);
One very weird thing about this is also that when i interact with the program memory usage increases when it shouldn't, so thats how i'm sure it is not about heap space. This does not happen when runned using netbeans.
Re: BufferedImage problem
Looks like i only increased heap size for the version I run from netbeans, while compiled version is still on default size.
Can someone please tell me how to increase heap size for the compiled version since i can't find a way to do it in netbeans 7.1.2 :(
project properties->Run-> VM options only affects netbeans runned version as i see it
Re: BufferedImage problem
Launch the jar from a batch file (Windows) or shell script (Linux / MacOS) and supply the -Xmx flag on the command line.
db
Re: BufferedImage problem
Lord, and I had assumed that you were already doing this. My bad!