Graphics or Thread problem (not sure)

Hello,
I have an app that displays screens with jpg's for backgrounds. If I run the app and view all the backgrounds, exit that class, and then change a background via the software and run the class that displays the screens it still displays the old background. I have to stop and restart the software before I see the new image.
Main class
parses xml via a runnable thread which calls the display class.
panel class
sees if the image exists, yes paints its, no loads default.
My question is: If I'm calling the display class from the thread, when I dispose of that class does the thread die, or is still there in memory along with all it's variables values.
Thanks
Jim

If I'm calling the display class from the thread, when I dispose of that class does the thread die...If by that class you mean the display class, then the life of the thread doesnt depend on that class alone. If thats its only function, to display that (display) class, then yes, it will die when the display class is disposed of. If it has other things to do, it will linger till their done.
How are you 'exiting' the class? setting it to null? that would get rid of the old imgs in memory.

Similar Messages

  • Ipod Problem, not sure how to phrase.

    Yesterday, after I uploaded a song onto my Ipod, it was doing okay.. I play the song on my Ipod an hour later and it completely froze. I let the power on it go to zero then recharged it. Next day, I use it, seemed okay today... *holds down pause button to turn it off*, nothing happened. I then used the menu "sleep" button and that didn't work either. I restarted my Ipod and charged my Ipod... Later, I turned it on when it was fully charged, The song works, the sleep button works.. but what screen does the sleep button take me to? "Full Charged (battery under it). What should I do? Would deleting the song I uploaded onto my Ipod be the solution?
    Not Sure   Windows Vista  

    Ok let me rephrase. This is how it went.
    1. Ipod (Video) Froze
    What I did: Waited for power to die off then recharged
    2. Ipod wouldn't sleep.
    What I did: Restarted Ipod (Hold Select + Menu)
    3. Ipod would sleep, but in sleep mode, this is up:
    http://www.apple.com.pl/support/ipod101/anatomy/3/index_files/anatomy03-1.jpg
    But instead of saying "Charging" it just said "Charged". This is currently what is with my ipod, the ipod thinks that it is hooked up to a power supply when it is not.
    My problem is that I cannot make the "Charged" screen go away.

  • Tar problem - Not sure where to ask

    This is my post in this forum & I'm not sure where to post this.
    I have just installed Arch in my office system 2 days ago. I was extracting tomcat 5.0.28 official tar.gz in my arch system and it gave this error:
    tar: A lone zero block at 82109
    The tar version in my system is
    tar (GNU tar) 1.15.1
    I extracted the same archive in our server where the tar version is:
    tar (GNU tar) 1.13.25
    and it gave no error
    The error/not error is same with either -x or -t flag.
    Is it a bug in the new version of tar (I think so, arch should have nothing special about it).
    What should I do can anybody suggest?

    Yes the size does match, so I think the content may be OK.
    Last time I found the directory size mismatch using du -s
    but I guess its because the two directory was in two different fs
    in server it was xfs, in my home it was ext3.
    By the way is there any way to verfiy equivalency of two directories. I know
    of md5sum but that works file by file.
    Thanks.

  • When i try to open a web page, a blue screen appears and it is telling me " safari cannot open the page because i am not connected to the internet. i have an iphone, no problem and a laptop with connection - no problem - not sure what the trouble is.

    when i try to open a web page, a blue screen appears - message says - sarfari cannot open the page because it is not connected to the internet. i have an iphone - no proble and a laptop - no problem as well.
    what is wrong?

    There are other things that need attention:
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Shockwave Flash 10.0 r32
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • Focus problems, not sure how to make focus work correctly

    I have a number of dialog boxes and wizards, and just before I call show I request focus for the component I want to be displayed, but nothing happens. I think the show method it JDialog is setting the focus, and that this is the problem.
    I want behavior to work as expected ie.focus to start at top left component and work its way down. Instead it seems to be giving fucos in the order the components were added, or soething like that. Does anyone know if this is indeed the case? I have many widgets which add components in the superclass, so this could cause me problems.
    I do not want to create a focus manager, but if worse comes to worse, I will - this is a problem that is unacceptable to the client.
    Any suggestions or comments?
    btw I am using 1.3.1 and win2k for the OS.

    Hi,
    addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowActivated(java.awt.event.WindowEvent evt) {
    formWindowActivated(evt);
    protected void formWindowActivated(java.awt.event.WindowEvent evt) {
    // Add your handling code here:
    getFocusFor(yourFirstComp );
    private void getFocusFor(final JComponent comp ){
    SwingUtilities.invokeLater(new Runnable() {
              public void run() {
              comp.setRequestFocusEnabled( true );
              comp.requestFocus();
    }

  • Font problems, not sure how to deal with

    Hi,
    I recently opened an archived final cut pro project and suddenly all of the Livetype files couldn't be rendered because a font was missing.
    This seems to be happening slowly as the project before that suddenly stopped using one of the fonts I had installed ( I ignored it figuring that it might possibly be a license that had gone out).
    At any rate, I posted this in Livetype forum but hadn't received an answer yet. I just went in to font book and I have an exclamation point in a yellow triangle with a warning below that says:
    'Multiple copies of this font are installed. You can use the Resolve Duplicates Command to automatically deactivate the copies not in use.'
    Does this have anything to do with my problem?
    No one seems to be able to answer so far and this is costing me money by the minute.
    Thanks

    Christopher --
    If you have two (or more) of the same font enabled, yes, it could very well cause your problem.
    Do you see the two fonts?
    Open them up with the triangle, and look closely at the properties. (date,etc)
    If you hover your cursor over each font, you will see more information).
    Then click "Resolve duplicates" and try again.

  • Weird connectivity problem - not sure if it's DB or tnsnames

    Oracle 11.1.0.7
    I am trying to connect to DB but keep getting the ORACLE not available:
    sqlplus user_cust@ea03
    SQL*Plus: Release 11.1.0.7.0 - Production on Tue May 4 15:42:09 2010
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    /var/opt/oracle/tnsnames.ora:
    ea03 =
      (description = (address_list = (address = (protocol = tcp)(host = eahost.ea.com)(port = 1526)))
      (connect_data = (sid = ea03)))
    listener from /var/opt/oracle:
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.1.0.7/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    oraea03 =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = eahost.ea.com)(PORT = 1526))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1526))
    sid_list_oraea03 =
      sid_list =
      (sid_desc = (global_dbname = ea03)(oracle_home = /u01/app/oracle/product/11.1.0.7/)(sid_name = ea03))
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_oraea03=OFF
    [oracle@qysqalefitdb01 oracle]$ lsnrctl status oraea03
    LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 04-MAY-2010 15:43:20
    Copyright (c) 1991, 2008, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=eahost.ea.com)(PORT=1526)))
    STATUS of the LISTENER
    Alias                     oraea03
    Version                   TNSLSNR for Linux: Version 11.1.0.7.0 - Production
    Start Date                04-MAY-2010 14:28:52
    Uptime                    0 days 1 hr. 14 min. 28 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      ON
    Listener Parameter File   /var/opt/oracle/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsn/oraea03/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.14.11.50)(PORT=1526)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1526)))
    Services Summary...
    Service "ea03" has 1 instance(s).
      Instance "ea03", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@qysqalefitdb01 oracle]$ tnsping ea03
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 04-MAY-2010 15:43:40
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (description = (address_list = (address = (protocol = tcp)(host = eahost.ea.com)(port = 1526))) (connect_data = (sid = ea03)))
    OK (0 msec)environment
    ORACLE_SID=ea03
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOME=/u01/app/oracle/product/11.1.0.7

    Found the problem hard way. Had "/" in oracle home in listener.ora

  • Problem not sure if it's a big onw

    OK so I new to Apple and I have some great little programs and have installed them and not had a problem. Then all the sudden I having problems it! I got Connect360 and it was working great with my 360 and now it just won't work so I went in to my preference pane folder and deleted and then I went back in to my system preference and I noticed that my Universal Access icon is all messed up in fact in looks like a switch which I believed it was orginally a blue circle with some kind of emblem on it! How do I get the icon back to the way it was!

    mjtorres,
    Quit System Preferences if it's running and trash the following file:
    /Users/~/Library/Caches/com.apple.preferencepanes.cache
    Then launch System Preferences and hopefully the Universal Access icon will behave.
    ;~)

  • VERY bizarre problem, not sure of the forum, files becoming corrupt...

    Alright, a day or two ago I started encountering something very strange in my iTunes library. About 6 years ago I made the jump from Windows to a Mac. Naturally, I brought my media library with me. I've had the same computer all these years, and a little over a year ago, migrated my iTunes library to a 1tb external drive. Since then, I went back to my CDs and re-encoded most of my music at a higher bitrate than what I kept it at on my Windows machine. Some of the music I didn't or couldn't re-encode. Same went with a few of my movies. Now, a few days ago, some of this low bit rate Windows encoded material has suddenly become corrupt for no reason that I can see. It appears normally in my library, but without any artwork. When I try to play it, it immediately plays the first song in my iTunes library. Trying to play the same file in other programs (Quicktime, VLC, Finder's preview, etc.) gives various error messages, all basically saying the file can't be read. More and more of the files I carried over from Windows come up with this problem every day. It's not a staggering majority of my library, but some of the stuff will be difficult to replace for various reasons. The only change I've made to my computer set up recently was adding an Apple TV onto my ethernet network.
    Basically, my question is, is this any kind of a known issue, or is my disk going bad, and strangely the files that are going corrupt first are the ones I carried over from Windows? Should I be worried about my recently added files?
    Any and all help is greatly appreciated.

    The drive reports no errors of any kind. I also doubt this because, exactly like I said, it's only files carried over from Windows that are doing it.

  • Weird Thread problem - Not getting processing time from system?

    I have an applet that displays an animation, and tasks are divided up into separate threads. After the main display is created, I create a thread that repaints the display every 10 milliseconds and one that does the actual animation. The odd thing is, even though it is in an infinite for loop, the message (see below) only comes up once (saying "Refresh 0"), and the applet doesn't refresh unless I minimize and maximize the window. Below is a modified code snippet:
    ...imports...
    public class AnimationApplet extends Applet
    AnimationApplet a;
    public void init(){
    a = this;
    createDisplay() //gets the container and adds a Jpanel with main animation, a button and a textfield.
    new AnimateThread().start()//calls animate() method which uses a timer to daw a series of lines
    new RefreshThread().start();}
    private class RefreshThread extends Thread{
    public void run()
    int count = 0;
    for(;;){
    JOptionPane.showMessageDialog(null, "Refresh " + count);
    tp.repaint() //refresh main panel
    a.validate()
    count++;
    sleep(10);}
    }If you need to see more code, I can provide it. Thanks in advance for the help!

    Nothing I'm trying is working. Someone please help!

  • Masking problem - not sure what code to use

    hi,
    I am designing something which has 4 buttons, linking to 4
    seperate animations. the buttons are hairspray bottles and the
    animation is a image which fades up, as if it were being sprayed.
    The way I have designed it is for each bottle to have this code:
    on (release) {
    section1.play();
    section2.gotoAndStop(1);
    section3.gotoAndStop(1);
    section4.gotoAndStop(1);
    with each section having it's corresponding image/animation
    fading through.
    So when a user clicks on the first bottle, this is fine,
    because the background is visible and then the animation sprays
    over the top. But when the second bottle is clicked, rather than
    spray over the top, the original background image is shown for a
    second, then the animation comes over the top of this.
    Any ideas how I could have each animation appearing over the
    top of one another?

    use the swapDepths() method of movieclips to change the
    apparent depth of your movieclips.

  • Copied some code, not sure how to alter it

    I copied this section of code from my header:
    <div id="nav"><a href="#">home</a> <a href="#">contact us</a> <a href="#">employees</a> <a href="#">retirees</a> <a href="#">Workers' Compensation</a></div> 
    into another part of my website - in the primary division.  But when I make a compound rule to affect only the section in the primary division, it still changes the section in the header.  I want to change the buttons to say different things and float left, and it seemed easier to copy existing buttons I made last week.  Should I start from scratch again? Thanks! paiger

    Now I'm getting embarrassed.  Since I'm logged into a secure site, I don't know how to post a link to the template.  I can send the link, but I don't think others have access. 
    Just a few minutes ago I figured out one way to resolve my problem - not sure if it was efficient, but it worked.  Thanks again for being so ready to help.  You guys on this site are great.  -paiger

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • Sync session failed to start on my ipod touch. tried to delete back up history but it only shows my daughters ipod touch and not mine! Im unable to update or purchase new aps, not sure how to fix this problem?

    sync session has failed to start on my ipod touch. Tried to delete the back up but it only shows my daughters ipod touch. Iam unable to update or purchase new aps, not sure how to fix this problem?

    Try:
    https://discussions.apple.com/thread/3415227?start=0&tstart=0
    https://discussions.apple.com/message/16400530#16400530

  • Ignore this thread - not sure how to delete it

    I solved my problem and I'm not sure how to delete this thread.

    I'm just a lowly user of Aperture but when I want to compare an original image to the edited one on my screen, I simply hit the keyboard letter "M" on my keyboard.  This reveals the original photo before editing and hitting M again gives you edited version.  I do this in the VIEWER mode to toggle between the two.
    You might also try selecting an image while in SPLIT VIEW mode, holding down the command key and selecting a second image...this puts both (or several if you want) images in the viewer in order to compare.
    Hope this helps a little!

Maybe you are looking for

  • Connecting a new Macbook Pro to an older iMac

    Hi, I've got a Macbook Pro 15" (early 2011) and I want to connect it to an older iMac at school so I've got a bigger screen for photoshop. But the problem is that my MBP has a Thunderbolt port, but the iMac doesn't. The iMac does have a Mini Displayp

  • SharePoint system generated IDs are not synchronous

    Hi, We've published InfoPath forms in document library 'A' and used default "ID" field of SharePoint to generate Request IDs for tickets. As we add consequent documents(items) in library 'A', 'ID' is getting incremented properly i.e. 801, 802, 803. B

  • Problem with XMLDOM package (Oracle 10.2.0.1.0)

    Hi, I am using the dbms_xmldom package to generate xml files (specific structure). Below is the code but It produces nothing (dbms_output does not return) : DECLARE doc xmldom.DOMDocument; main_node xmldom.DOMNode; root_node xmldom.DOMNode; root_elmt

  • JMS Thread Pool Size

    Hi,           I'm using WLS 6.1. The console has a setting for: JMS Thread Pool Size. I wanted to tune the number of threads used by JMS. I thought JMS asynch consumers would use threads in this pool however that doesn't seem to be the case (they all

  • Avoiding borderless printing cropping both directions

    Since day one, I've been having problems printing exactly what I want to print when I print borderless. The following image shows the full photograph and, within the lighter rectangle, what came out when I printed it from Lightroom in borderless mode