Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Mohamed Sanaulla wrote:I think, looking at the sample you have posted, you are still using JavaFX 1.2 or 1.3. JavaFX versions prior to 2.0 are no longer supported. So you have to move your applications to JavaF 2.0 API. And in JavaFX 2.0, you create javafx applications using the JavaFX API and not JavaFX script.
The Runtime or the JavaFX SDK needs to be installed separately and as of now are not bundled with the JDK.
So you can start learning javafx 2.0 here.
Antonio Jimenez wrote:
Mohamed Sanaulla wrote:I think, looking at the sample you have posted, you are still using JavaFX 1.2 or 1.3.
Hi Mohamed,
No, I'm using JavaFX 2.0.
Garbage Collector should free that memory, but it doesn't ... when I want to free memory, I just need to close the window, that means the elements of that window won't be referenced by any element, so if I close the window, the memory should be freed.
luck, db
There are no new questions, but there may be new answers.
Darryl Burke wrote:
Antonio Jimenez wrote:
Mohamed Sanaulla wrote:I think, looking at the sample you have posted, you are still using JavaFX 1.2 or 1.3.
Hi Mohamed,
No, I'm using JavaFX 2.0.
Then why do you mislead the forum by posting JavaFX Script? In future, please PostRealCode.
If you don't run into OutOfMemoryError, there's nothing to be concerned about. The behavior you describe is normal for any Java application and not specific to JavaFX 2.0 (or any earlier version).
Garbage Collector should free that memory, but it doesn't ... when I want to free memory, I just need to close the window, that means the elements of that window won't be referenced by any element, so if I close the window, the memory should be freed.
The GC frees up memory and makes it available to the JVM. That doesn't mean that the memory is released to the OS.
If you're short on RAM, try reducing the memory available to the JVM by running with the -Xmx flag.
Antonio Jimenez wrote:
Hi, Darryl,
First I want to tell you is that the first post is not mine! So I've never post any JavaFX Script... I said that I have the same problem that J-horto has. I didn't try to mislead anyone in this forum.
Antonio Jimenez wrote:
Second, I know that is a JavaFX problem because JavaFX keeps some references to Objects that I actually don't use!!!
Those Objects are no more on the Screen, and If you have to load many pictures and you don't need them any more later, you want that the GC does its work...But it doesn't happen!
Bye
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Mohamed Sanaulla wrote:
Antonio Jimenez wrote:
Hi, Darryl,
First I want to tell you is that the first post is not mine! So I've never post any JavaFX Script... I said that I have the same problem that J-horto has. I didn't try to mislead anyone in this forum.
There was some confusion as my reply was to the OP but you replied to my post so that setup a flow. Nevermind.
Antonio Jimenez wrote:
Second, I know that is a JavaFX problem because JavaFX keeps some references to Objects that I actually don't use!!!
Those Objects are no more on the Screen, and If you have to load many pictures and you don't need them any more later, you want that the GC does its work...But it doesn't happen!
Bye
I havent myself tried something in those lines. But if you find such issues, I think you can file a bug for that.
Mohamed Sanaulla wrote:
Antonio Jimenez wrote:
Hi, Darryl,
First I want to tell you is that the first post is not mine! So I've never post any JavaFX Script... I said that I have the same problem that J-horto has. I didn't try to mislead anyone in this forum.
There was some confusion as my reply was to the OP but you replied to my post so that setup a flow. Nevermind.
luck, db
There are no new questions, but there may be new answers.
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Don't get me started about those stupid light bulbs. |