Programs closing for no reason

For about a month now, when i use for example safari, the program just closes and reports an error or asks to reopen the program. This also happens to other programs I use.
Does anyone know why this is happening and what can i do to fix it??
I was thinking about reinstalling OSX but im hoping thats the last resort...
thanks

You may be having a corrupt preference problem. Try checking them with Preferential Treatment and please post back with results,
Miriam

Similar Messages

  • This program won't work for some reason

    I'm having trouble with getting this program to do what I want. It reads in a file and identifies certain parts that follow the rules I've given. The first version below is one that works. It simply prints out the string if it meets the conditions in the if statements. The second one will compile but shows no data. I know it stores the values in the arrays sortstem and sortdg becuase I put the println statement directly after the code for storing them and it worked. However, when I put it where it is now, it will not work. Any suggestions? Also, I get an error after the program runs for both versions: It says exception in thread "main" Java.lang.NullPointerException at tokens.main(tokens.java.69) (this was for the first program).
    import java.io.*;
    import java.util.*;
    class tokens {
         public static void main(String args[]) throws IOException {
              int i;                                                       //int to read in the data from the text file
              int count = -1;
              int countt = -1;
              int countc = 0;                                                  //int to put data into a char array
              FileInputStream fin;                                             //input stream
              char array[] = new char[10000];                                        //array to hold chars from the text file
              String s;                                                  //chars are transfered to this String
              int index;                                                  //index of the names I'm searching for in the string
              String tokens[] = new String[10000];                    
              try {
                   fin = new FileInputStream(args[0]);
              } catch (FileNotFoundException e) {
                   System.out.println("File not Found");
                   return;
              } catch (ArrayIndexOutOfBoundsException e) {
                   System.out.println("Usage: ShowFile File");
                   return;
              do {
                   i = fin.read();
                   if (i != -1) {
                        if (count==array.length-1) {                              //this expands the array if more space is needed
                             char temp[] = new char[array.length+5000];
                             for (int j = 0; j < array.length; j++) temp[j] = array[j];
                             array = temp;
                             array[++count] = (char) i;
                        else
                             array[++count] = (char) i;                         
              } while(i != -1);
              fin.close();
              s = new String(array);
              StringTokenizer st = new StringTokenizer(s);                                                            
              while (st.hasMoreTokens()) {
                   if (countt==tokens.length-1) {                              //this expands the array if more space is needed
                             String temp1[] = new String[tokens.length+5000];
                             for (int j = 0; j < tokens.length; j++) temp1[j] = tokens[j];
                             tokens = temp1;
                             tokens[++countt] = st.nextToken();
                        else
                             tokens[++countt] = st.nextToken();     
              if (tokens[4].startsWith("stem")) {
                   if (tokens[4].equals(tokens[201])) {      //Skip this one
                   else
                        if ((tokens[9].equals("32")) && (tokens[15].equals("31"))
                        && (tokens[21].equals("30")) && (tokens[27].equals("29"))
                        && (tokens[33].equals("28")) && (tokens[39].equals("27"))) {
                             System.out.println(tokens[4]);
              for (int k = 201; k < tokens.length-198; k++) {
                   if (tokens[k].startsWith("stem")) {
                        if ((tokens[k].equals(tokens[k+197])) || (tokens[k].equals(tokens[k-197]))) {
                             //Skip this one
                        else
                             if ((tokens[k+5].equals("32")) && (tokens[k+11].equals("31"))
                             && (tokens[k+17].equals("30")) && (tokens[k+23].equals("29"))
                             && (tokens[k+29].equals("28")) && (tokens[k+35].equals("27"))) {
                                  System.out.println(tokens[k]);
    }This one below compiles but doesn't print to the screen.
    import java.io.*;
    import java.util.*;
    class tokenstest {
         public static void main(String args[]) throws IOException {
              int i;                                                       //int to read in the data from the text file
              int count = -1;
              int countt = -1;
              int countc = 0;                                                  //int to put data into a char array
              FileInputStream fin;                                             //input stream
              char array[] = new char[1000000];                                        //array to hold chars from the text file
              String s;                                                  //chars are transfered to this String
              int index;                                                  //index of the names I'm searching for in the string
              String tokens[] = new String[200000];
              String sortdg[] = new String[500];     
              String sortstem[] = new String[500];                         
              try {
                   fin = new FileInputStream(args[0]);
              } catch (FileNotFoundException e) {
                   System.out.println("File not Found");
                   return;
              } catch (ArrayIndexOutOfBoundsException e) {
                   System.out.println("Usage: ShowFile File");
                   return;
              do {
                   i = fin.read();
                   if (i != -1) {
                        if (count==array.length-1) {                              //this expands the array if more space is needed
                             char temp[] = new char[array.length+5000];
                             for (int j = 0; j < array.length; j++) temp[j] = array[j];
                             array = temp;
                             array[++count] = (char) i;
                        else
                             array[++count] = (char) i;                         
              } while(i != -1);
              fin.close();
              s = new String(array);
              StringTokenizer st = new StringTokenizer(s);                                                            
              while (st.hasMoreTokens()) {
                   if (countt==tokens.length-1) {                              //this expands the array if more space is needed
                             String temp1[] = new String[tokens.length+5000];
                             for (int j = 0; j < tokens.length; j++) temp1[j] = tokens[j];
                             tokens = temp1;
                             tokens[++countt] = st.nextToken();
                        else
                             tokens[++countt] = st.nextToken();     
              if (tokens[4].startsWith("stem")) {
                   if (tokens[4].equals(tokens[201])) {      //Skip this one
                   else
                        if ((tokens[9].equals("32")) && (tokens[15].equals("31"))
                        && (tokens[21].equals("30")) && (tokens[27].equals("29"))
                        && (tokens[33].equals("28")) && (tokens[39].equals("27"))) {
                             sortstem[countc] = tokens[4];
                             sortdg[countc] = tokens[3];
                             countc++;
              for (int k = 201; k < tokens.length-198; k++) {
                   if (tokens[k].startsWith("stem")) {
                        if ((tokens[k].equals(tokens[k+197])) || (tokens[k].equals(tokens[k-197]))) {
                             //Do nothing
                        else
                             if ((tokens[k+5].equals("32")) && (tokens[k+11].equals("31"))
                             && (tokens[k+17].equals("30")) && (tokens[k+23].equals("29"))
                             && (tokens[k+29].equals("28")) && (tokens[k+35].equals("27"))) {
                                  sortstem[countc] = tokens[k];
                                  sortdg[countc] = tokens[k-1];
                                  countc++;
              for (int z = 0; z < countc; z++) {
                   System.out.println(sortstem[z]);
              for (int z = 0; z < countc; z++) {
                   for (int y = z+1; y < countc; y++) {
                        if (sortdg[z].compareTo(sortdg[z]) > 0) {
                             String tdg = sortdg[z];
                             String tstem = sortstem[z];
                             sortdg[z] = sortdg[y];
                             sortstem[z] = sortstem[y];
                             sortdg[y] = tdg;
                             sortstem[y] = tstem;
              for (int j = 0; j < 20; j++) {
                   System.out.println(sortstem[j] + ": dG = " + sortdg[j]);
              System.out.println("Test");
    }

    I'm still having trouble with the println in this program. For some reason, in this section of the code, if I put System.out.println(sortstem[0]); inside the for loop, it works fine. But if I try to do it ouside of this loop, it will not work. The only thing I can think of is that the variable is only available inside the loop but I just can't figure it out. Can anyone enlighten me?
    for (int k = 201; k < tokens.length-198; k++) {
                   if (tokens[k].startsWith("stem")) {
                        if ((tokens[k].equals(tokens[k+197])) || (tokens[k].equals(tokens[k-197]))) {
                             //Do nothing
                        else
                             if ((tokens[k+5].equals("32")) && (tokens[k+11].equals("31"))
                             && (tokens[k+17].equals("30")) && (tokens[k+23].equals("29"))
                             && (tokens[k+29].equals("28")) && (tokens[k+35].equals("27"))) {
                                  sortstem[countc] = tokens[k];
                                  sortdg[countc] = tokens[k-1];
                                  countc++;
    [code/]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

  • Photoshop CS4 Help Window Pops Up For No Reason

    This same thing was happening in Photoshop CS3 and I could never figure out why. I figured that since CS4 was coming out, I would buy it, stop using CS3 and the problem would be solved, well it's not. So far, I'm happy with the new program but for some reason, out of nowhere, while working on a photo, the Photoshop Help window (which opens as a web browser window) will pop up for no reason! Today, it popped up over 6 or 7 times and I nearly had to crash the program to get it to stop. I figured this problem would have been solved with the new version since the same thing was happening in CS3 but it hasn't. I'm running a Windows XP-based machine that I built myself about 2 years ago. I have a 512mb ATI Raedon X1650 video card and have 4GB of RAM so this machine has far more than enough power to run the program. I updated my video and mouse drivers prior to installing the program. Anyone else have this problem?

    Thanks for pointing that out. It really happens very rarely, but when it happens, it's quite a huge annoyance.
    Well I have about 3,5GB RAM on a Windows Vista 32 Bit system (hence just 3,5 instead of the full 4GB), with the OpenGL options activated, and maybe over 100GB of free HD space (that'll never be a problem, but since swapping is not used by all modules, I often bump into RAM problems when using tools like auto-aligning layers or stitching panoramas) and 2,5Ghz core duo on a notebook. The Windows swap file is also "just" 4GB...but I found more than 4GB to be a bit extreme.
    RAM usage is set to 56% right now (916MB), cache levels is set to 6
    After restart, everything runs fine again, I hope the help screens leave me alone.
    I didn't know this is since v. 7! I worked with all versions since 5.0 and since becoming a freelancer also bought every version since 6.0 except 7. I only experienced this bug in this and the previous version. Maybe my hardware doesn't keep pace with PS anymore

  • External drive turns off and on for no reason

    Hello,
    While I work on my computer I have been hearing lately my Lacie drive shut off and start up again and shut off... like it is trying to stay on... and if I select it on the desktop, the beach ball appears and will continue to twirl until I shut my computer and startup again. I was also having problems with QuarkXPress (desktop publisher program) quiting for no reason and thought that it was the external hardrive causing this problem. So, I have been starting the computer in the AM without plugging in the Lacie to see if Quark doesn't quit, but it does quit for no reason. I have also trashed the preferences for it with no luck. I am starting to think that maybe it is my computer itself having problems. I had the permissions repaired, used TechTool Pro to repair any problems. All had been fixed by these two approaches and I am still having the Lacie trying to quit and restart... and still having Quark quit...
    Please help. Today I performed a PRAM to see if that will work. I'm not sure what it is for, but in the past it has helped other problems.
    Any idea as to what is going on?
    martazoila

    martazoila:
    Welcome to Apple Discussions.
    Take a look at these FAQs by Dr. Smoke and see if any of his recommendations help:
    Resolving Disk, Permission, and Cache Corruption
    Multiple applications quit unexpectedly or fail to launch
    The Spinning Beachball of Death
    Please post back and let me know if anything worked for you, or with further questions or comments.
    Good luck.
    cornelius

  • For some reason osx mountain lion has disappeared from my purchases and now when i want to install mountain lion on another mac with the same apple id it wants to charge me for the program even though i have already purchased it. what do i do?

    for some reason osx mountain lion has disappeared from my purchases and now when i want to install mountain lion on another mac with the same apple id it wants to charge me for the program even though i have already purchased it. what do i do?

    Open the Mac App Store on the other Mac and in the Quick Links sign into your account. See if the Mountain Lion purchase is among hidden apps in the iCloud area of your account info.

  • I installed Nik:s suite of plug-ins for LR5 but for some reason not all of them were installed. In the end I uninstalled all of the Nik programs from my Mac but before I reinstalled them I opened LR5 again to check. Under "photo" and "edit in" the plug-in

    I installed Nik:s suite of plug-ins for LR5 but for some reason not all of them were installed. In the end I uninstalled all of the Nik programs from my Mac but before I reinstalled them I opened LR5 again to check. Under "photo" and "edit in" the plug-ins were still presented but no programs opened, of course. after reinstalling the plug-ins one of the programs appeared twice in the list but not the others. I´m going to reinstall them again and I´m wondering if there is anyway of erasing the links to the plug-ins under "photo" and "edit in" ???

    Wow that was really quick, thank you so much.  Im not sure at all which version it was because i said it was around 4 years ago he bought it.  I know it isn't under his username, since he's a PC person (ugh) so i know its probably registered to one of our actual names.  isn't there some way to look it up since we did register it, because I'm not even sure where the disks are from when we bought it (we've moved a lot and also have two storage lockers, i know i would have kept it with other disks) but my cd rom drive is actually broken on my computer as well ( i think it got stepped on and is now squished and won't eject or run disks.)
    So is there anyway they can look up that its registered to one of our names since we did register it when we bought and installed it, or do i really have to find the disk with some sort of proof of purchase (i know there would be no receipt after all this time)
    either way, ill do what you suggested to the best of my abilities and thank you so much for answering my questions, i can't even open the program as its incompatible and find out the info from that) so I'm in a bit of a pickle and your response was so thorough and it didn't seem to be posted long enough to even write a well researched response, thanks, all the best,
    sarucia

  • The credit card info on the account has changed but for some reason there is no option for me to make the changes.  In addition, cloud has stopped working and all other programs that need to be updated cannot be.

    the credit card info on the account has changed but for some reason there is no option for me to make the changes.  In addition, cloud has stopped working and all other programs that need to be updated cannot be??

    Make sure that EVERY DETAIL is the same in every place you enter your information
    -right down to how you spell and punctuate the parts of your name and address
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -email address https://forums.adobe.com/thread/1446019
    -http://helpx.adobe.com/x-productkb/global/didn-t-receive-expected-email.html

  • For some reason with pages program the cursor will no longer appear when I bring up a blank document, so I cannot start any typing.  Anyone else have this problem?

    With my ipages program for some reason now when I open a blank document no cursor appears so that I can start typing.  anyone else have this issu?

    I gather you have Pages '09? Even though you haven't said so. You definitely don't have "ipages".
    It sounds like you have opened a blank Layout template, which has nothing on the blank page for you to type into.
    Either insert a Textbox or Shape, or create a new document using a Word Processing template, they are listed in the Sidebar.
    Peter

  • I bought an Adobe writer program a few years ago, and have had no problem saving information I've added to pdf forms.  For some reason, I can no longer save the information that I enter.on the form.  In fact, I get a message that the information will NOT

    I bought an Adobe writer program a few years ago,and have have had no problem saving information I've added to pdf forms.  For some reason, I can no longer save the information that I've entered.  In fact, I get a message that the information will NOT be saved.  How can I correct this?  Thanks!

    Hey louiseg45826294,
    Thank you for posting on Adobe forums.
    Could you please let me know what Adobe Writer program you are talking about. Is it Adobe Acrobat or Reader?
    Could you please share the screenshot of the exact error message that appears.
    Are the PDF forms saved on your computer's local drive?
    Hope to hear from you.
    Regards,
    Anubha

  • Where to find my Serial Number for Photoshop CS6 Extended? The program has been on my computer for at least a year now and for some reason it is now requiring my serial number to run the program. Please help!

    Where to find my Serial Number for Photoshop CS6 Extended? The program has been on my computer for at least a year now and for some reason it is now requiring my serial number to run the program. Please help!

    Log in into your Adobe account and go to "My Products".  You'll find a list of all the products you've ever registered with Adobe.

  • I took out a trial of Fireworks CS6, but for some reason a .dll file has been deleted off my computer. How can I download the program again?

    I took out a trial of Fireworks CS6, but for some reason a .dll file has been deleted off my computer. How can I download the program again?

    Hello
    you could have a look there Download CS6 products
    Hans-Günter

  • SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: program

    Hello,
    We have installed MSCS cluster on OFS for SAP ERP EhP4 SR1.
    This installation is successful and both the nodes are running.
    However, as soon as i execute any of the DB13 jobs, I get the mentioned error.
    SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: program_start_error.
    This is stopping us from releasing the system to the end users, which effectively delays our GO-Live till the problem is resolved. 
    Please advise what all steps or notes are to be followed to make DB13 working in MSCS clusrer.
    Regards
    Ankita

    Hi,
    Briefly describe your system architecture ?
    Have you followed/implemented  SAP Notes [446172|https://service.sap.com/sap/support/notes/446172]  and [657999|https://service.sap.com/sap/support/notes/657999] carefully, by comparing your existing settings?
    Have you analyzed the log entries  in SM21, also at Operating system level Logs ?
    If you Database is on another host then SAPXPG_DBDEST_<dbhost> or <virtual_dbhost> (a TCP/IP connection) will play an important role for executing SAPXPG command. Test SAPXPG_DBDEST_<dbhost> or <virtual_dbhost> RFC connection with its Trace logs.
    Regards,
    Bhavik G. Shroff

  • If for some reasons I have to reinstal my OS.Can I then reinstal the creative cloud & the programes

    If for some reasons I have to reinstal my OS.Can I then reinstal the creative cloud & the programes

    yes.
    it would be a good idea to deactivate first (help>deactivate), then uninstall (unless your re-formatting your harddrive).

  • For whatever reason, I am frequently getting delays in seeing the characters after I type.

    For whatever reason, I am frequently getting delays in seeing the characters after I type when using Firefox- ie- Firefox, G mail, etc- but not when using other apps like Skype. I have downloaded the latest add-ons and Flow Scroll w no improvement and moved the remote sensor closer to the keyboard and changed the batteries numerous times but because the issue is with only certain programs I wonder if it is Firefox that is having the problem? Thanks in advance for your help~ Jim

    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox profile folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox profile folder.
    *Help > Troubleshooting Information > Profile Directory: Show Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Multiple_profile_files_created
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost and you will have to recreate them (make a note or bookmark them).
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • My iMovie 8.0.6 keeps crashing for no reason!!! Help!!!

    My iMovie 8.0.6 keeps crashing for no reason!!! Help!!! I have verified the version is up to date and never had this problem before. I deleted all of my other projects. Don't know how to fix this but it's driving me nuts and the program keeps closing out of nowhere!! How do I fix this??

    Hi
    No Quick Fix - only my Trouble shooting notes
    Trouble-shooting guide
    When iMovie doesn't work as intended this can be due to a lot of reasons
    First try: Start iMovie - BUT keep - Shift-key down during full Up-Start - might help.
    Pref and Cache files:
    iMovie Pref files got corrupted - trash it/they and iMovie makes new and error free one's
    problem in iMovie Cache folder - trash Cache.mov and Cache.plist
    Creating a new User-Account and log into this
    This forces iMovie to create all pref. and cache files new and error free
    Event or Project got corrupted - try to make a copy and repair
    a Codec is used that doesn't work (even though iMovie and/or iDVD tries to / they fail in the end)
    version miss match of QuickTime Player / iMovie / iDVD
    preferences are wrong - Repair Preferences
    other hard disk problem - Repair Hard Disk (Disk Util tool - but start Mac from ext. HD or DVD)
    External hard disks - MUST BE - Mac OS Extended (hfs) formatted to work with Video
    ( UNIX/DOS/FAT32/Mac OS Exchange - works for most other things - but not for Video )
    USB-flash-memories - usually do not work
    Net-work connected hard disks - usually do not work (most often not fast enough and WRONGLY FORMATTED as DOS etc.)
    iPhoto Library got problems - let iPhoto select another one or repair it. Re-build this first then try to re-start iMovie. When iMovie starts-up it first look trough this iPhoto library and if faulty it all Halt’s.
    This You do by
    First -  close iPhoto
    Secondly - on start up of iPhoto - Keep {cmd and alt-keys down}
    Thirdly - now select all five options presented
    THEN - WAIT a long long time (>20 hours are not strange)
    free space on Start-Up (Mac OS) hard disk to low (<1Gb) - I never go under 25Gb free space for SD-Video (4-5 times more for HD)
    external devices interferes - turn off Mac - disconnect all of them and - Start up again and re-try
    GarageBand fix - start GB - play a few notes - Close it again and now try iMovie
    Screen must be set to million-colors
    Third-party plug-ins doesn't work OK
    Run "Cache Out X", clear out all caches and restarts the Mac
    Let Your Mac be turned on during one night. At about midnight there is a set of maintenance programs that runs and tidying up. This might help
    Turn off Your Mac - and disconnect Mains - for about 20-30 minutes - at least this resets the FireWire port.
    In QuickTime - DivX, 3ivx codec, Flip4Mac, Perian etc. - might be problematic - temporarily move them out and re-try
    (I deleted the file "3ivxVideoCodec.component" located in Mac HD/Library/Quicktime and this resolved my issue.)
    buenrodri wrote
    I solved the problem by removing the file: 3ivxVideoCodec.component. after that, up-dated iMovie runs ok.
    Last resort:
    Trash all of iMovie and re-install it
    Yours Bengt W

Maybe you are looking for

  • HELP! Powerbook G4 running extremely slowly!

    Hi all, First off, some stats about the computer: Powerbook G4 15", 1.33 GHz, 256 Mb DDR SDRAM, running on OSX 10.3.9 (Panther--yes, I got it a few years ago!) and with 3.5 Gb left of my 60 Gb hardrive. Now the symptoms: I notice that my computer tak

  • How to turn off actionscript error alerts?

    I have to give a demo tomorrow and there are some flash modules that were done in earlier versions of Flash that while they work just fine, they throw up a really annoying error and make the presentation look bad. Is there some preference to turn the

  • Aol sync authentication failed

    I installed Funambol AOL Sync on my Blackberry 8330 Curve today and all seemed to go well until I tried to use the synchronization feature. It fails every time with the message 'authentication failed: scard' or 'scal'. AOL and Funambol don't seem to

  • Flex DataServices necessary working with  Java

    Hello, Im pretty new in Flex but like to know a few things for my company. The situation is this: We have a very large webproject with about 6000 JSP-Pages. Now we want to use new web 2.0 technologies to gain more usability, maintainability...... Its

  • After installing Mountain Lion, contacts will not sync

    After installing Mountain Lion, contacts will not sync to iphone 3G