My program is turning against me! please help

Background: Last year, I was in Comp. Sci. 1 at my high school. I tried to make a humongous game that I only partially got finished for my final project. Now, a year later, after I forgot most of java, and all of what I had written, I am trying to improve it.
Problem: There are various problems. On my computer at home, the program just stops after I work with it enough. No errors, no graceful shutdown, it just comes to a complete stop so I have to log out/in to fix it. Also, a canvas in my game seems to have to problem of, every once in a while, returning null when I call get getGraphics(). But that only happens like 1 out of 10 times I run it. Also, sometimes it give me an error to the effect of "null pointer exception", but it neglects to tell me where in my program the error came from, it just lists about half a dozen instances of threads (or I think thats what it is). How can I fix any of these problems? Thanks,
Eric

My first thought on reading your subject line is to tell you to unplug skynet now before it gets into the network...
That aside you haven't given us a whole lot to work from but I can tell you this. You have a variety of seemingly fatal threading issues and problems. I must warn you that these sorts of issues are often only resolvable by a ground up re-write because it's possible that your threading model is just that much of a mess.
Anyway it's threading related based on your symptoms because of two things
- the kind of freezing you describe
- it appears from the rest of your post that threads are deadlocking. Essentially thread A is holding on to Object apple and wants to use object Pear. But thread B is holding on object Pear and won't let go until it gets Object apple
Anyway you'll have to start posting your threading relevent code if you want more help. Please make sure to use the code tags. I'll tell you right now though thread deadlock all over the place with whatever race conditions etc you are experiencing is not a good sign.
Not to feel bad. Threading is not an easy topic to learn, which is why it's best to start small. But we'll see what we can do.

Similar Messages

  • Hello i have a unusual problem,anyway my iphone 4 wont turn on and when someone calls they hear ringing,but my phone doesent ring,so i open cimcas now ring off. Screen is just black,because it's turned off..Please help me to solve this problem..Thanks

    Hello i have a unusual problem,anyway my iphone 4 wont turn on and when  someone calls they hear ringing,but my phone doesent ring.So i poen simcase and now ring off. Screen is just  black,because it's turned off..Please help me to solve this  problem..Thanks

    As far as trying to power up your device, make sure it has a good charge and then hold the button on the top of the phone and the home button on the faceplate together until the apple appears on the screen.

  • Why can't I make a kik account? I have IOS6 and higher and my restrictions are turned off! Please help!

    Why can't I make a kik account? I have IOS6 and higher and my restrictions are turned off! Please help!

    What happens when you try?
    See:
    iOS: An app you installed unexpectedly quits, stops responding, or won’t open
    Contact the developer/go to their support site
    https://kikinteractive.zendesk.com/home
    Restore from backup. See:
    iOS: How to back up
    Restore to factory settings/new iPod

  • I have got big problem. i have iphone 4 for a few day (it was new and packed) and now i realised that the screen during the conversation doen't block and turn up black. please help me, i don't knwo what to do!

    I've got big problem. i have iphone 4 for a few day (it was new and packed) and now i realised that the screen during the conversation don't block and turn up black. please help me, i don't knwo what to do!

    Connect to the Computer you Usually Sync with and Follow the Steps Here...
    Recovery Mode
    http://support.apple.com/kb/HT1808

  • Best way to find an Ipad 2 wifi only that has been stolen or lost? Have "Find My Iphone" installed but device not turned on. Please Help!

    Best way to find an Ipad 2 wifi only that has been stolen or lost? Have "Find My Iphone" installed but device not turned on. Please Help! Left in Spirit Airplane in Chicago and no where to be found

    Apple (and no one else) can not assist (with serial number or iCloud) in finding a lost or stolen iPad.
    Report to police along with serial number. Change all your passwords.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    iCloud: Locate your device on a map
    http://support.apple.com/kb/PH2698
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    iCloud: Locate your device on a map
    http://support.apple.com/kb/PH2698
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    What NOT to do if your iPhone or iPad is lost or stolen
    http://www.tomahaiku.com/what-not-to-do-if-your-iphone-or-ipad-lost-or-stolen/
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    http://support.apple.com/kb/HT4061
     Cheers, Tom

  • I have a spelling app that is stuck on the screen - it doesn't have any way to close it out, and when I split the screen and go to "Finder" to remove it, it says that it can't, because the program is still open. Please help.

    I have a spelling app that is stuck on the screen - it doesn't have any way to close it out, and when I split the screen and go to "Finder" to remove it, it says that it can't, because the program is still open. Please help.

    Paul,
    I'm sure this is the correct answer, but just switched to Apple, so am just an apple seed at this point! :~)
    How do I get to the Apple Menu?
    Thanks!
    KL

  • Why i cant install adobe creative cloud - i try to download afew time's when i start the install its turns off..please help me fix that i wanna try AI

    why i cant install adobe creative cloud - i try to download afew time's when i start the install its turns off..please help me fix that i wanna try AI
    when its go to downloading Creative cloud to des its go down

    http://prntscr.com/4iaboa
    http://prntscr.com/4iabrvx
    anyone can help me please?

  • IPOD NANO WONT TURN OFF! PLEASE HELP

    my ipod is 3 days old and wont turn off! i bought it in singapore and i downloaded itunes on the computer in singapore and put songs and pictures on it, and it would turn off. the next day i was on the plane and i was listening to it and i went to turn it off and it wouldnt, i got it off by putting sleep timer on so it automatically went off but i couldnt turn it off by pressing play pause button or menu button. i have tried resetting it but wen you reset it you have to turn it off and i couldnt turn it off. everything else workd fine but it will not turn off!please help me its only 3 days old!!
    iPod nano 2GB   Windows XP  

    The iPod does not need to be turned off to reset it. Here are the instructions for resetting the ipod. If this fails to do the trick you may want to try and do a restore.
    http://docs.info.apple.com/article.html?artnum=61705
    Hope this helps

  • I just changed my iphone 4s and received another one as i was still under my one year warranty, and now when i play music via headphones there is a volume limit on it, i have tried to turn it off but it wont turn off someone please help

    i just changed my iphone 4s and received another one as i was still under my one year warranty, and now when i play music via headphones there is a volume limit on it, i have tried to turn it off but it wont turn off someone please help>>>

    Hi kingminjing,
    Have you checked your Control Panel to make sure you don't have the flashlight turned on?
    Swipe up from the bottom of the screen and make sure the flashlight icon (bottom left-hand corner) is not white. If it is, tap on it to turn it off.
    Cheers,
    GB

  • I Was updating my ipod touch and it was all going ok until the white apple with the bar came up and then itunes crashed out, it is still on with the white apple and i cant turn it off please help me

      Was updating my ipod touch and it was all going ok until the white apple with the bar came up and then itunes crashed out, it is still on with the white apple and i cant turn it off please help me this has been like this for 30 minutes

    Did you try to reset by holding the sleep and home button until the Apple logo comes back again?
    If this does not work, try to connect again in recovery mode: http://support.apple.com/kb/HT1808

  • My Mac Mini starts to boot up then after a few minutes turns off.  Please help.

    My Mac Mini starts to boot up then after a few minutes turns off.  Please help.

    seen this happen many times, usually always due to corrupt memory.......could be a power module in the Mini, but unlikely.  hold down command R on startup, see if you can get into safe mode or ANY SCREEN ...If under warr. call mac for a service check, ....BUT if you have spare memory around that is compatable, try that first, process of elimination diagnostics.

  • MacBook Pro WON'T TURN ON. Please help!

    I'm an editor and rely on my computer daily. Please help me.
    I purchased my 17" MacBook Pro back in April of 2008. It was dropped once the first year I had it, with no noticeable damage (thank God). I've had no major issues with it, until today.
    I was editing on it earlier this afternoon, and when I was finished, I put it away in my incase backpack like I always do. Put it in my trunk, went on some errands, and just returned home.
    I took it out to power it up. I hear the internal start up sound of the hard drive waking up and trying to spin (no apple sound) and then it just dies. Black screen the whole time. No logo. Nothing. The white light on the button to open the screen turns on and flashes, and then goes off too.
    I'm really freaked out that it's dead. If I can't start it up at all, is there any way to retrieve my files from it? I have some things backed up, but there's a lot of stuff I still need off of it. My main priority in all of this is just making sure I can save my files.
    If this clues anyone in as to what's wrong, a couple of days ago the screen started twitching black for about 2 minutes intermittently. I'd never seen it do that before, and it stopped shortly afterwards. Is this just my computer being three years old and pooping out on me randomly?
    Please help. I'm freaking out. I need all of my software.
    Thanks!

    I just logged in and the software did not return me to this page. How Primitive. It's Sunday for me, the launch day for my new international business. My Skype meeting was to be held on my Macbook Pro. The Apple staff have all decided that this day isn't very important for them, so they're at the beach. My Macbook did not turn on all day, even with the SXX reset or whatever you call it. Ctrl Alt Shift Power. I heard a little click each time I did this, to no avail. In desperation, I turned the 'laptop' (that's what the REAL world calls them) over and saw weird screws for a rare type of screwdriver. I pressed down slightly on the metal casing and heard a few of the clicks like with the SMC reset. I wondered if that would make a difference.
    I turned my computer over, opened it up, pressed the power button and it worked immediately. THE INTERIOR OF THE 2011 MACBOOK PRO MAY BE SHODDILY ASSEMBLED. My battery life is 4.5 hrs max at 50% brightness in safe mode with no 'programs' (not f***ing 'Apps') running. When I browse the internet at 50% brightness in normal mode, the battery lasts 90 mins, although I have never pressed the metal casing on the back of this laptop gently to reassemble the inner workings of this machine before, so it could last for 100 hours. Nope, I'm down to 87% after ten minutes. It's back to normal.
    Summary: To fix your Mac, hit it with a hammer. Hopefully it'll break so you can go back to Windows and actually see how many Firefox windows you have open and right click on things to bring up the menu instead of aiming your mouse for every tiny thing onto pinheads like a frekkin surgeon.

  • Error installing Adobe in Program Files... PLEASE HELP!

    Hi,
    I´m trying to install the trial of Adobe CS6 Master Collection (FOR PC) in the folder Program files and I always get this message:
    "download may fail to this folder due to restrictive access privileges. Please select a different folder."
    I´ve tried installing it in another folders and the problem is the same... If I try to install it in a completely different place (as the desktop), it initially lets me but after that, when the installation starts, it says that there is the error 109 and that I cannot install...
    WHAT CAN I DO? PLEASE HELP!
    Thank you very much.

    We cannot know, but it sounds like you simply don't have the proper user privileges and are not the administrator. This is nothing Adobe can fix for you. Talk to your IT department/ the computer owner or if in fact you are your own admin, log in with a proper account and turn off security tools and whatnot...
    Mylenium

  • Palm Centro locks everytime I close a program by pressing End? Please Help

    I recently bought a palm centro for my girlfriend and she is having a huge problem everytime she closes a app or ends a call by pressing the red/end key it locks the phone is there any way to get rid of this feature? I apologize if I didnt post in the right area. Please help Thanks
    --Krayz
    Post relates to: Centro (Sprint)
    Message Edited by Krayz on 07-16-2009 05:06 PM

    If the Centro works like earlier PalmOS phones, the red end key turns the screen on and off; it is not used to close programs. By default, turning off the screen enables the keyguard, so it is necessary to press the center button to use the keyboard again. However, if she has to enter a password, she may need to adjust the settings under Applications (Home button) > Security.

  • My iPhone 4 will not let me play my music I bought on iTunes or pandora or YouTube with out my headphones or speakers plugged in. I can play my ringtone without them plugged in but that's all. Also my iPhone will not turn off. Please help

    I tried resisting my phone it didnt work. Please help? This is the first time it has ever happens and has been doing it for a week. The sound will only play without headphones or speakers is when I'm listening to my ringtone. And my phone won't turn off. It turns off then just turns back on.

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • I want to submit a concurrent program from pl/sql. Please help me.

    Dear all,
    I want to submit a concurrent program from pl/sql. But I failed. Please help me.
    Detail:
    I create a concurrent program in 'Cash Management, Vision Operations (USA)' responsibility. <strong>And it be submitted success in EBS</strong>.
    Then
    I create a test script in pl/sql. And use 'FND_GLOBAL.APPS_INITIALIZE' to initialize ebs, then use 'FND_REQUEST.SUBMIT_REQUEST' to submit
    the consurrent program, But the procedure aways return <strong>0</strong>.
    I cannot found the reason. Please help me.Thanks.
    <em>Attached informations may describe the problem:
    1.The concurrenct submitted success in EBS.</em>
    request_id = 4750655 (Sorry, I dont know how to add pictures.)
    <em>2.The initialize informations which from SQL</em>.
    SELECT FCR.REQUESTED_BY USER_ID
    ,FCR.RESPONSIBILITY_ID
    ,FCR.RESPONSIBILITY_APPLICATION_ID
    ,FA.APPLICATION_SHORT_NAME
    ,FCP.CONCURRENT_PROGRAM_NAME
    FROM FND_CONCURRENT_REQUESTS FCR
    ,FND_APPLICATION FA
    ,FND_CONCURRENT_PROGRAMS FCP
    WHERE FCR.PROGRAM_APPLICATION_ID = FA.APPLICATION_ID
    AND FCR.CONCURRENT_PROGRAM_ID = FCP.CONCURRENT_PROGRAM_ID
    AND FCR.REQUEST_ID = 4750655;
    Result: user_id = 1318;
    responsibility_id = 50579;
    application_id = 260;
    application_short_name = 'CE';
    program_short_name = 'CALLK009';
    <em>3.The test script code.</em>
    <p>
    -- Created on 2008/10/22 by ERIC
    declare
    -- Local variables here
    Wv_conc_req_id VARCHAR2(10) DEFAULT NULL;
    BEGIN
    FND_GLOBAL.APPS_INITIALIZE(
    1318
    ,50579
    ,260
    Wv_conc_req_id := FND_REQUEST.SUBMIT_REQUEST(
    'CE'
    ,'CALLK009'
    ,NULL
    ,SYSDATE
    ,FALSE
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    DBMS_OUTPUT.PUT_LINE(Wv_conc_req_id);
    COMMIT;
    end;
    <em>4.The concurrent program code.</em>
    create or replace package body CALLTEST is
    PROCEDURE T1(PvO_errbuf OUT VARCHAR2
    ,PvO_retcode OUT VARCHAR2)
    IS
    BEGIN
    FND_FILE.PUT_LINE(fnd_file.log, 'TEST');
    END;
    end CALLTEST;
    </p>

    Can you check from which schema you are executing FND_REQUEST? You can try as follows;
    Connect to your required schema, create a synonym on apps.fnd_request, connect from apps and finally execute grant all on apps.fnd_request to all.
    You can check for relevance from Doc ID: Note:147495.1
    Please do keep in the mind the soultion above should be applied to a test/dev EBS instance first.
    I hope this would be of help.
    Saad

Maybe you are looking for