Sitemap

Amicuk Programming Answers

Do you think JOptionPane dialogs force garbage collection afterwards?

2015-10-11   Views:0

Advertisement

I ask because I've made a nested static class to implement my own file selection tool; the problem is that each time I call it the old JPanel is being recalled and so the components get re-added to it each time it's called, resulting in n versions of

I ask because I've made a nested static class to implement my own file selection tool; the problem is that each time I call it the old JPanel is being recalled and so the components get re-added to it each time it's called, resulting in n versions of each file for every n times you open it.
I'm running myDialog.dispose() upon exiting, so is my only option now manual garbage collection? How could I force it to be garbage collected? Because System.gc() seems to have no effect.

The replay answer
Advertisement
Strictly speaking there is no way to force garbage collection, so, no, JOptionPane will not be doing it.
You almost certainly have a leak in your code. Post it and we may be able to help.

Go to See the other 3 answers

Do you think JOptionPane dialogs force garbage collection afterwards?

Category:DefaultRelease time:2015-10-11Views:130

I ask because I've made a nested static class to implement my own file selection tool; the problem is that each time I call it the old JPanel is being recalled and so the components get re-added to it each time it's called, resulting in n versions of[More]

Memory leak in java / forcing garbage collection for unused resource?

Category:DefaultRelease time:-0001-11-30Views:130

Is there any possibility in big programs if not designed properly for leakage of memory? If say i forget to force garbage collection of unused resouces what will happen? Even if i am forcing garbage collection how much assurity can be given to do so?[More]

Force Garbage Collection through scripting

Category:DefaultRelease time:-0001-11-30Views:130

Hi , I am using weblogic server 8.1.5 on windows 2003 server. can we do force garbage collection through a script? If so can i have a sample script for the same? OS:windows 2003 server thanks in advance. Madan MohanAnd the key here is "any length of[More]

Why can we force Garbage Collection

Category:DefaultRelease time:-0001-11-30Views:130

Hello, Why can we force garbage collection since we have AUTOMATIC garbage collection?If you don't call dispose on the Window, it may keep a GUI thread running in the background. Since this thread is still running and accesible from the root, it will[More]

Force Garbage Collection

Category:DefaultRelease time:-0001-11-30Views:130

Before I load a new level, should I force garbage collection on the old level? And if so, how?Just remember that the method suggest the garbage collector to run, not forcing it.. If you have a lot of objects created that are later available for garba[More]

Force Garbage collection externally....

Category:DefaultRelease time:-0001-11-30Views:130

hi! I am new to java.is it possible to the force Garbage collection externally? can i achieve it by giving the command "System.gc();".pls give me idea... Thanx Rgds,You can't force a full GC as far as I know. gc() might force a GC of the younges[More]

Applescript: force garbage collection?

Category:DefaultRelease time:-0001-11-30Views:130

Hello I am trying to call applescript functions (from my cocoa application - using NSAppleScript's -executeAndReturnError), to automate some operations in Microsoft Word. The problem is that after every Applescript call, the Word operates slower and[More]

Howto Force Garbage Collection manually in Oracle Application Server

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have a Oracle SOA suite installed on Oracle 10g Application Server. The heap memory for the SOA oc4j container is 2G with a permgen space of 256M. But it looks like there is some memory leak somewhere and the Heap area is getting filled frequen[More]

Will system.gc() force garbage collection?

Category:DefaultRelease time:-0001-11-30Views:130

what impact will the method system.gc() have if i call it in one of the user methods.If you use Sun's HotSpot 1.5.0 JVM (or later) with the -XX:+UseConcurrentMarkSweepGC (low-latency) garbage collector, you can use the additional flag -XX:+ExplicitGC[More]

Can I force full garbage collection?

Category:DefaultRelease time:-0001-11-30Views:130

Hi, my program is memory bound , as users load more files more memory is required , if the user decides to load a very large number of files they will eventually run out of memory. So I am trying to detect when there is less 15% of heap memory left,[More]

Cache voluntary garbage collection called

Category:DefaultRelease time:-0001-11-30Views:130

We have installed Oracle Web Cache 2.0.0.4.0 on Windows 2000. We setup the Maximum cache size parameter to 1000Mb, but, when we try to caching a web using WGET, Oracle Web Cache return a "cache voluntary garbage collection called" in the file of[More]

Hot
I have one drive of my system with 10.3.9, that I've been using for quite awhile, with all my apps, preferences, registrations etc. I just installed a clean install of 10.4.3 on another drive. Is there away to clone/copy all my user settings from the [More]
I used to be able to play video podcasts on my TV by connecting my iPod touch to the TV via an Apple AV cable.  Now that I've upgraded to ios 6 and the podcasts app got installed along with the upgrade, video podcasts will no longer play on my TV whe [More]
Hi, i am not able to run tcpmon(tool used for tracking soap messages)on IPV6 vista machine, It has jre1.5.0_10 version and axis1.2. The error thrown is "java.net.SocketException:Address family not supported by protocol family:create". I am able [More]
Dear Sir, our office have the ECC6 and crm 5.0, we have the some typel business partner synbetween r/3 and CRM . However, we had  setting one bussiness partner number with external number , and we are not allow to synchoize back to r/3 . Where can i [More]
Post Author: waynemr CA Forum: WebIntelligence Reporting I am involved in a deployment of Business Objects Enterprise XI r2 where the initial testing was done with IIS as the back end for Web Intelligence. When I went to training for BOSE, it was cle [More]
Hi guys, I work on pi 7.1. A flat file is sent to me using http request. I want to read the file, remove the heading and then convert it to xml and pass it into R3 through an idoc. Do anybody have any suggestions. Thanks UgurThank you for the link. I [More]
I am trying the new Flex 3 Beta. On my local machine I am referring to data in results.xml stored in the same folder as the mxml. When I run the program, I get a prompt for local host, choose cancel and my sheet with the data comes up great. Problem: [More]
Hi,  attach you'll find a sequence file and a VI. This VI should open the Expression Browser and after selection a variable (in this case I select Locals.test) the property object exists should tell me if this local variable exists. This is part of a [More]
Hi Gurus , While doing confirmation i am getting this error  ' Plant 1000 is not the only plant assigned to valuation area 1000' It the error ask me to exist . Because for taht i am not able to confirm the porodcution order . I have define the new or [More]
Is it possible to export a podcast at a higher bit rate than 64 kbps? My old podcasts were much higher quality and I'd prefer to up this bit rate if at all possible. Help!Open GarageBand Preferences > Export In the Audio options, 32, 64, 128, and bey [More]