Browser reload increses the number of open JFrames

Hey guys,
this is funny.... I have an JApplet... it opens two JFrame's.... this works fine... but when I am reloading the browser (firefox or safari) I have 4 frames.... reload... 6 frames.... reload 8 frames....
Reload invokes the destroy() method... and actually the applet and all its resources should be away.... but it isnt?!
I tried to memorize all my open JFrame's and to invoke .dispose() or .removeAll() on them if the destroy() method is called... but nuthing!
Really... I am confused.. can anybody help me, please!
SA.

That's easy.. try this please:
public class HahaApplet extends JApplet {
     private Image im;
     public void init() {
          JFrame frame1 = new JFrame();
          JFrame frame2 = new JFrame();
          frame1.setSize(100, 200);
          frame2.setSize(500, 500);
          frame1.setVisible(true);
          frame2.setVisible(true);
}after you deployed it with a html file and tried to open it with your browser... press several times the reload button... and the frames will be popuplating your whole screen! ;-)
I meant with memorizing, that I hold a reference to all my open frames in my real application... when the browser invokes the destroy method i could invoke on all my frames dispose() or removeAll() to make sure the frame are killed from the heap. But nothing helps... frames are coming like snow in the alps!
Thank you.

Similar Messages

  • FF currently limits the number of open sessions

    I currently programmatically launch FF on linux using an execl command. In the run string I use the -P option and launch my application by right clicking on the file that has its own mime type and that is opened by my app before the execl call. (my app takes a data file and creates a temp html file that is handed off to FF via execl) I check the system processes for a current running version of FF. If so I add the no-remote option.
    This all works ok. However, if I attempt to launch another copy of my program FF will not allow this even though I am using a tab browser configuration.
    I believe that one session of FF per "user" is acceptable but not the limit of one tab for each user other than the default user. I see my FF configuration eventually having several users as I begin to implement separate security policies for certain websites such as financial, casual, javascript development, no cookies, etc.
    I typically keep well over 20 tabs open, if FF crashes I can loose everything as if the restore fails I must then hunt up each tab that I had open using history.
    Can I get an update on where FF is headed with regards to the maximum number of users windows and the capability to open multiple tabs with a non-default user.

    Sounds like you've got a connection leak - rather than increasing the number of open sessions, you need to constrain the application to use fewer!
    If you don't ensure that the connection is closed even if an exception is thrown after it is opened but before it is closed then you are liable - likely even - to leak connections.
    For example. Bad:
    Connection c = getConnection();
    ... code here ...
    c.close();Good:
    Connection c = getConnection();
    try {
       ... code here ...
    } finally {
       c.close();
    }The same rule applies to ResultSet and Statement objects - and all three should be closed in the appropriate order (make sure you close result set and statement objects before re-using their reference).
    (edit: rephrased ambiguous final para).

  • Limit the number of open production order

    Dear PP experts,
    I am working on discrete scenario where client want to limit the number of open production order per work center. The more elaboration is like, for one work center the only specific number of production should remain open (e.g. 5 production order in assembly shop) when user is trying to open 6th production order system should restrict that.
    Does any standard functionality available in system or needs development?
    Regards,
    Shekhar

    Dear,
    You can do it with avilability check for materail and capacity.
    In OPJK do the for your production order type as no release if materail and capacity i missing.
    Hope clear to you.
    Regards,
    R.Brahmankar

  • HT1338 My mac is becoming too slow. It takes long to open word documents, pdf files or excel documents or even safari. Can anybody suggest something? I have tried to reduce the number of open applications, but does not seem to work.

    My mac is becoming too slow. It takes long to open word documents, pdf files or excel documents or even safari. Can anybody suggest something? I have tried to reduce the number of open applications, but does not seem to work.

    Hi ...
    Checked to see how much free space there is on the startup disk lately?
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
    Freeing Up Hard Disk Space - Mac GuidesFreeing Up Hard Disk Space - Mac Guides
    If disk space is not the issue, booting in Safe Mode deletes system caches that may help.
    A Safe Mode boot takes longer then a normal boot so be patient.
    Once you see the Desktop, click the Apple menu icon top left corner of the screen.
    From the drop down menu click Restart.
    See if that makes a difference ...

  • When interactive pdf opens in browser window can the pdf links open in separate windows

    Problem is the pdf works ok when it opens in the browser window, BUT the links in the pdf don't open in separate browser windows, as they do when the pdf is downloaded as a file.
    If pdf links can only open in separate browser window when the pdf itself opens as a separate file, the how do I email a pdf download link on a website.

    Hello Yesh,
    you can open PDFs as a guest user (without authentification):
    1. Allow Guest Access (Admin -> Security Configuration -> Check "Allow Guest Access" and select a folder name).
    2. Copy your Report into this guest folder
    3. You can open the Report as PDF with a link like this:
    http://(bip-server-name):9704/xmlpserver/(guest-folder-name)/(report-name)/(report-name).xdo?_xpt=0&_xf=pdf&_xmode=4(&report-parameters)
    Just replace the strings in brackets. You find a great description of the URL parameters in Tim Dexters Blog
    http://blogs.oracle.com/xmlpublisher/2006/07/accessing_xmlp_enterprise_repo.html
    I didn't find an option to set the height of the PDF-Output for the guest user in the BIP-UI. Maybe I missed something. But you can manually edit the configuration file. It is located on your BIP server direcory in the subdirectory xmlp/XMLP/Users. Select the guest users subdirectory and edit the configuration file "user~.profile".
    In this XML config file there is an entry "viewerHeight". In the Value-Tag you can enter the PDF output windows height in pixel (but unfortunaly not in % - this was the question of my original posting).
    Hope that helps...
    Sascha
    Edited by: sascha@tesat on Oct 26, 2009 9:02 AM

  • Question about trigger to check the number of open cursors

    Hello.
    I wonder if it is possible to create a trigger that fires when the number of open cursors in a database becomes larger than a certain number. What kind of trigger and how would it be?
    If it were possible the trigger would write traces with the timestamp of the event.
    I would also like some pl/sql tester that would increase the number of open cursors so that I could check the trigger.
    Thanks in advance.

    Satish Kandi wrote:
    OPEN_CURSORS is a value per session and not for the entire database. So if your cron job is looking for a global cumulative value of open cursors to occur in a single session, it won't find any such sessions.
    Is it the case?Yes, I am afraid it is.
    I am sorry but I don't unsertand what you are telling me: doesn't "select count(*) from v$open_cursor" count the number of open cursor for all sid columns in the view?
    The cron launches a scripts that connects to the database via sqlplus whereas there is a java application (several threads without connection pooling) that connects to the database via jdbc and that causes the problem once in 5 months (to say something).
    Thanks again.
    Edited by: fsanchezherrero on Jul 3, 2009 12:28 PM
    Edited by: fsanchezherrero on Jul 3, 2009 12:36 PM

  • Is there a way to increase the number of "Open Recent" files that is listed Lightroom 5?

    In previous versions this was unlimited. It allowed me a quick way to view catalogs I have worked on even months ago.
    There are no options inside Lightroom 5 to adjust this that I can find.
    So is there a file I can modify in the Lightroom system folder or in the registry that will remove the limited number or increase the number allowed in the list?

    JimHess wrote:
    I agree that there really isn't a benefit to having multiple catalogs. I have two catalogs that I use. One is my main catalog that has multiple years and all of the images that I want to keep. The other one is my "test catalog" that I use for experimenting with different photo techniques. None of those images are important enough for me to want to keep them with my other ones. I don't use it very often anymore. But it's there just in case. There's not a performance hit for having thousands of images in a single catalog. The catalog is primarily a database designed for high-volume use. Having all images in a single catalog simplifies searching and organization in general. But if you're happy with multiple catalogs then go for it. Sometimes the more difficult way is easier to understand.
    Ok so let the debate begin....
    So why have multiple catalog choices at all? When you load a catalog it contains all of the images and the modification data that you have done to each picture with in each module in Lightroom.
    Beyond that you have within that catalog a 1000 folders each with a day or name for the shots taken. You still have to rifle through those files and imagines anyway all the while having a years worth of photography packed in to one single catalog. Why?
    I am a professional photographer, I shoot daily, and I import my shots each day in a folder dated and named for the shot. I create a new catalog for those folders so that I can open only that catalog and what was done with it at the time.
    It is easy for me to pop open that catalog and keep it separate from all my other days of work and back it up individually. I can quickly run back through my archives and find a client for reprints and all of the setting done for that client or project stay with the catalog.
    So why pack everything in to one master huge catalog? even if it is just data it can be a lot over time depending on how much work you do. I myself take 100s of shots per day and this is the system I like best to protect mine and my clients work.
    But really thanks for your comments I will continue working my way with all of my work spilt in to separate catalogs.
    I wont be back on these forums anytime soon because like most of them you can not get an answer to the actual question you ask instead you get berated by some people who have too much time on their hands and not enough work to.

  • How to analyse the number of open cursors being used by each program?

    Hi,
    I am getting an error "ORA:1000 Maximum Open Cursors Exceeded" in my
    application. I want to analyse and monitor that how many cursors are
    being used  by each program running in a particular session. I have
    already set the Open Cursors Count double of the recommended for my
    application, yet I am getting this error.
    Is there any tool to analyse and monitor the number of cursors being
    used by each DB call?
    I have installed SAP NW 7.0 and Using Oracle 10g as DB.
    Your immediate help will be greatly appreciated.
    Best Regards,
    Smriti.

    You can list the open cursors per session and check which one uses the most with sqlplus:
    SQL> select a.value, s.username, s.sid, s.serial#
    from v$sesstat a, v$statname b, v$session s
    where a.statistic# = b.statistic#  and s.sid=a.sid
    and b.name = 'opened cursors current';
    Values over 300 are unusual.
    It is quite possible, that you see several workprocesses using a lot, because workprocesses are kind of shared sessions.
    Cheers Michael
    Edit: ah, our posts crossed, obviously there is no workprocess in the java world

  • Why does refreshing my web browser page increment the number of users connected to my Remote Front Panel?

    Hi,
    I'm using LabVIEW 2010 and a cRIO-9118 to broadcast my RT Front Panel on the web with a Web Server.
    I successfully configured the web server to be able to control my Front Panel remotely. However, I have an issue with "Refreshing" the browser.
    When I press "Enter" to search the adress of the web server, the number of users connected seems to increment by one and then tells me that "Too many users are connected to the front panel". Once this has been done, the only way to "unlock" the web server is to reboot the cRIO.
    Is there any solution to avoid this behavior?
    My current web browser is Internet Explorer 8.
    Thank you
    Mathieu Veillette, Ing Jr.
    Solved!
    Go to Solution.

    Hi Mathieu,
    Unfortunately, there currently isn't a very good solution for the problem you are facing. It seems like this is a known issue that R&D is working on. It so happens that in addition to simply refreshing, this issue also occurs if you try to access the Remote Front Panel using a second tab in a tabbed browser. One "fix" would be to invest in a higher count Remote Front Panel license. If that's not feasible, then the current recommendation would be to avoid connecting to the Remote Front Panel from a second tab or refreshing the view in your browser. Once you exceed the number of connections to the Remote Front Panel, you will have to restart the RT controller -- there isn't a way to change this default behavior. You can track any fixes by R&D by keeping note of the CAR (corrective action request) ID for this issue, which is #202702.
    Sanjay C.
    Embedded Software Product Manager| National Instruments

  • VBELN Value to be populated in browser after clicking the number in ALV

    Hello All,
    This is my requirement.I have written a report. It displays the values in ALV format. When i click any item on the alv grid.It should take me to any of the browser and the item number should be filled there.I am working for the transaction VA03.
    I have used FM CALL_BROWSER to call the URL.
    Can anybody help me out.
    Thanks,
    Indrakaran

    Hello Vijay,
    I am using report program to call the browser and display the VBELN value in the browser window not BSP.
    Thanks,
    IndraKaran

  • How do I increase the number of opened files in LabWindows?

    There's a Win32 function _setmaxstdio, but it doesn't seem to be included in the stdio.h version in LabWindows.  I'm using the fopen call and it's limited to 512 opened files.  MSDN help says to use the _setmaxstdio function.  Is there anyway to do this with the LabWindows compiler?
    Thanks!

    This number is defined in stdio.h as FOPEN_MAX and it is set to 255. Are you using fopen to open your files? _setmaxstdio is not supported for CVI. Why do you need to have more than 512 files open at one time?
    I am going to go ahead and say that this is not recommended. This can put a heavy strain on your system and can also suffocate your OS of file descriptors (remember that other applications and your OS itself will be opening files as well). Likely there is another way to architect your application so that you do not need that many files open at one time. Typically you do not leave files open. You open, read/write, then close.
    National Instruments
    Product Support Engineer

  • HT4306 how do I get the number to open apple tv if I didn't write it down

    when I try to open netflix on my computer it asks for a code.  I assume it means the apple one?

    What specifically are you attempting to do?
    There is nothing to "open" on the computer for Netflix... it's a website.
    Without knowing what code it's asking for, we cannot tell you what to enter there and it's unlikely the "code" would come from Apple.

  • All Gawker websites cause massive slowdowns, Not Responding status (but it rarely crashes), and don't always load properly, regardless of the number of open tabs or programs.

    Any time I navigate to one of the Gawker Media sites, Firefox slows down massively. The page loads extremely slowly, and the program freezes up. I often get a (Not Responding) message up at the top of the screen. Other programs on my computer are unaffected. This rarely (only twice in dozens of tries) actually crashed Firefox. It eventually comes back and everything runs fine, on that tab and others, until I try to move to or add another Gawker Media page. Occassionally the Gawker sites don't seem to load properly, but I suspect that may be an unrelated issue, caused by ABP or NoScript blocking ads or pop-ups on individual pages.

    -> Tap '''ALT''' key or press '''F10''' to show the Menu Bar
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to Tools Menu -> Clear Recent History -> '''Time range to clear: select "EVERYTHING"''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies, Cache''' -> click '''Clear Now'''
    -> go to Tools Menu -> Options -> Advanced -> Network -> Offline Storage (Cache): click '''Clear Now''' button
    -> Restart Firefox
    If it doesn't work, see this:
    Firefox never finishes loading certain websites
    https://support.mozilla.com/en-US/kb/Firefox%20never%20finishes%20loading%20certain%20websites
    Firefox cannot load websites but other programs can
    https://support.mozilla.com/en-US/kb/Firefox%20cannot%20load%20websites%20but%20other%20programs%20can
    Check and tell if its working.

  • If Firefox is set as the default browser, and any application attempts to open a new window, this fails and I get the error "Firefox is already running..."

    Here is what I am running:
    Microsoft Windows 7, Service Pack 1, Fully updated to 4/10/2012
    Fresh Install of Firefox 11. No add-ons enabled as a result of troubleshooting.
    I am a user with administrator rights
    UAS is disabled.
    To begin, this has been going on Since Firefox 10 or so. A few months now.
    I am able to open Firefox. My add-ons worked (ABP, Flashblock, ABP Element Hiding Helper, IETAB2, Downthemall, Greasemonkey, 4chan extension) had no problems. Firefox is set and has been set for the last two years as my default web browser.
    However Since approximately Firefox 10 or so, maybe before that, If I have a Firefox session open, and any other application attempts to open a session in a new window, I get the Firefox is already running, but not responding error."
    I attempted to follow troubleshooting advice already posted (look for parent.lock files left behind [none present], multiple sessionstore.js files [none present], create a new user profile, attempted to clear out the "read-only" permission in windows 7, however as soon as it is cleared, the read only permission returns.)
    As a last resort, I deleted the Firefox folder, the %APPDATA%/Mozilla directory in its entirety, then utilized CCleaner to remove any and all references to Firefox in the windows registry, then did a full re-install, no extensions installed right now.
    I checked preferences and have the option "open new windows in a new tab" checked off. The problem persists regardless if this option is checked on or off. This problem persists in or out of safe mode, even with the brand new install.
    Test Cases:
    All cases:
    Firefox is selected as the default browser for windows 7
    Case 1: Open a firefox session. Utilize any other program that attempts to open a link to their website in a new browser window or new browser session. Experience "Firefox is already running" error
    Case 2: Open a firefox session. Right click on Firefox on the task bar. Select "open in new window". Experience "Firefox is already running" error
    Case 3: Open a firefox session. Select the Firefox Menu > New tab > New Window. A new window will actually open.
    This is the only method of opening a new window in the same browser session or profile that actually works on my system. Attempting to open a browser session from the task bar "open new window dialog" or opening a new window while a current window/session is running will not open firefox in a new window or a new tab in the current session. The "Firefox is already running, but is not responding" error will occur every time.

    Cor-el's suggestion resolved my problem. Apparently the MOZ_NO_REMOTE variable was set to 1 on my system variables. I never made it, and really have no idea how it got there, but deleting this variable and restarting firefox has resolved the issue. Thanks Cor-el!
    Marking case: Solved
    Solution: Verify the MOZ_NO_REMOTE variable is NOT set to 1. This can be achieved by simply deleting this variable.

  • How to get highest number of open cursors within the current calendar day

    Hi all ,
    i need to know how to get the highest number of open cursors within the current calendar day.
    Thanks ,

    823030 wrote:
    the issue is my customer is getting the error ORA-01000: maximum open cursors exceeded and we need an sql statment that gets the following values :
    -highest number of open cursors experienced in the current calendar day.
    -current open cursors
    -and maximum open cursorsThis error is rare. It happens when
    a) the value of the open cursor parameter is set extremly low (default is something like 1000). Low would be something like 10.
    b) <strike>you have many concurrent users(=sessions) and </strike>the application does not use bind values
    In this case each select will open a new cursor, instead of reusing it.
    c) you have a select that opens a cursor for each line. This can happen with a statement where you have the CURSOR keyword somewhere in the select or where clause. Those cursors will be closed when the select is finished. But during the run time of the select, all cursors stay open.
    To track the number of "open cursors" during the day you would need to implement some monitoring. Maybe based on the view that was already mentioned.
    Edited by: Sven W. on May 16, 2011 2:30 PM - since the parameter is on session level, other open cursors should not influence it much.

Maybe you are looking for

  • Suddenly can't connect to tv

    i've been using my tv as an external monitor to watch itunes content for some time now. until the last week, all i had to to was plug in the mini-dvi to s-video cable that connects to the video-in jacks in the back of the tv, and it would recognize t

  • Can you connect the TC directly to a Mac Book Pro thru either USB or Ethernet?

    Can you hook a Time Capsule directly to a Mac Book Pro thru USB Port or Ethernet or? So that you can speed up the transfer time?? It's so slow compared to directly connected FW800 and Thunderbolt Drives... It's painful... Thanks

  • Problem Inspection lot 04 (early creation)

    Hi Experts, following problem: We use early creation for inspection lot 04. If Production Order was released the insp. lot was created. There is no stock quantity available in the lot, which is correct). If i do the result recording and UD (Accepted)

  • PROBLEM ZEN V P

    I am trying to connect my Zen v plus to the computer, but i get no result. It used to work fine. I did most of the following: - reinstalling the program - checking usb device - checking forms for any help - updates this is the last option, please hel

  • Not all my images show up in the Server Panel

    Not sure if this is a Dreamweaver (8) issue or a GoDaddy issue (or neither) – but I have site that has a cart with a lot of images. Inside the images folder, there are currently about 6400 jpegs and gifs. When I log into the server, I'm only seeing a