Crashing inDesign, bad format file, and more

InDesign has started playing not very nice over the past three weeks. It started with the app not responding if I left it idle for a period of a few hours. I would have to force quit. Then it started saying bad file format when i try to make a pdf. It has also told me that I it doesn't have enough memory and I should delete some files. Most recently it has escalated to crashing when I start the program and use Command O to open a doc. I am running a new MacBook Pro (6 weeks old) with OS 10.7.2, using CS 5.5. I use Suitcase Fusion 3 to manage fonts.
This was part of the last crash report generated:
Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Does this mean anything to anyone?
Help! I need to get some work done!

It started with the app not responding if I left it idle for a period of a few hours. I would have to force quit.
Next time, run Activity Monitor and then View > Send Signal: Abort (SIGABRT) and upload the crash report to http://pastebin.com/ and post a link here.
I use Suitcase Fusion 3 to manage fonts.
I'll bet you 2:1 this is the source of problems.
This was part of the last crash report generated:
Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Does this mean anything to anyone?
Yes, it means InDesign crashed. 90% of crashes are this variety. The rest of the crash report is necessary. Upload to http://pastebin.com/ and post a link here.

Similar Messages

  • Updating numbered Cross references crashes InDesign in both CS6 and CS4

    I have a large medical journal that has over a hundered references, which I cross-referenced with the thinking that the client may well insert or amend the refernces. I was correct and now the customer has several references to go in I have updated the first in its numbered list at the end and gone to "update cross-refernce" and InDesign crashes. I have tried this in CS6 and CS4 but both crash.  

    This happens often, particularly with cross-references across documents that are managed with an InDesign book file. One common suggestion, in addition to updating the installed software with the latest patches, is to open all the files in the book before updating; this may or may not always succeed. Search this forum for cross-reference crash to see other suggested solutions.
    Some of those posters may mention the commercial third-party Cross-References Plug-in for InDesign, from dtptools.com, and the poster's experience with it. It is reputed to be much more reliable than InDesign's built-in cross-references. It includes an option to convert the ID cross-references to its own, and that's reversible. There's a free trial. There's also a free reader plug-in for users who will need to open and edit documents that contain the plug-in's cross-references. The reader plug-in permits users to edit content in the documents without affecting the cross-references. HOWEVER, to edit or creatge new cross-references, users need the full plug-in.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    mccoole1 wrote:
    I have a large medical journal that has over a hundered references, which I cross-referenced with the thinking that the client may well insert or amend the refernces. I was correct and now the customer has several references to go in I have updated the first in its numbered list at the end and gone to "update cross-refernce" and InDesign crashes. I have tried this in CS6 and CS4 but both crash.  

  • Many apps crashing after iOS 5 update and more. Think Apple will give me a trade-in?

    I just typed about a thousand words and lost them. I noticed that my owned hardware list hadn't been updated in years and tapped on it.  The back button returned me here and all that was left was the title of the post and the tags. NOTE: SPELL CHECKER DOES NOT WORK IN SAFARI SO THERE WILL BE TYPOS.
    I don't have the strength to type them again. Basically my 64 Gb iPad 1 is unusable in many ways after the update. I have lost too much work and play because of it.  It never gave me any trouble before and if I had the scratch, I would be typing away on an Android tablet right now. Long time user since iPod Touch G1 and have owned too many to list.
    Big one, you can no longer charge with older or 3rd party cables.
    WiFi dropped completely in further corner of the house until I turned on the dynamic indicator for the flaky location system that shows that I'm in every town around me, and some not around me, but not my town.
    Filling in dialogs in Safari is torture, cursor often disappears. Tap around to find it and Safari crashes.
    Key lag at times is so bad it gets a word behind. Scrolling in any app is jittery and jerky at the same time.
    There are so many more. I typedmup 3x more but lost all of it. This thing is so flaky I have been using my HTC EVO more and more and liking it more and more. If it had a min 7" screen there would be no contest.
    I don't want to give up my iPad, but it is always annoying me with its bad behavior, what good is it to me any longer?
    Do you think it is too old to take to the Apple Store and ask for a trade-in? I once toasted a $500 Touch with a firewire sync cable and Apple gave me another, no questions asked. Do you think?
    Just look at all the typos! I am a technical writer and it is embarrassing. Stinky keyslab+dead spell checker makes me look illiterate. Yes, the spell checker is turned on. I have spent many hours in the Settings applet in the last few weeks.

    I have iPhone 4 just updated to IOS 6 as well. App Store App updates are freezing on WIFI. I've twice had to delete the app and re-install. Installs of apps are also failing, causing the app to be unusable. At that point because it is a 'new' install the app can't be deleted. So the app can;t be deleted or installed.
    IOS 6 on iPhone 4 also seems a bit laggy.

  • Ps3 format question, and more..thanks

    hi guys, i transferred a hd movie from my sony camera to my ps3 it plays great, when i copyed the movie from my ps3 to a external hdd, to edit with imov09, it wont play. the file is there, any ideas>
    also i took a clip of it and converted it to mp4, and another to quick time, they played ok, however when i dragged across to edit in movie 09 ,it wont allow them in to be edited ?
    where am i going wrong? any help would be great.
    thank you.

    Here are ones that appleman posted -- they will work for imovie9 just use export quicktime movie
    I did some experimentation based on a post by Dan Hawkins in the "Pro" forums. I experimented with his settings using the Quicktime Export option in iMovie 08 and they worked. His post is below.
    ============================================================
    from Dan Hawkins:
    I am using a PS3 to preview HD video edited in FCE-3.5.1HD with the following QT-PRO export settings:
    1) export from FCE using Quicktime conversion
    2) select format MPEG-4
    3) select options:
    a) under file format select MP4 (not MP4 ISMA)
    b) under video tab select H.264
    data rate in the range of about 10000 to 18000 kbits/sec depending on what filesize/quality you are shooting for
    image size---select 1280X720HD or 1920X1080HD
    frame rate---select 29.97 or "current" if already on a editing timeline of that type
    key frame---select either automatic or every 24 frames
    video options---select "MAIN" profile and single pass encoding (when I use "MULTI-PASS" encoding I get a "FILE UNREADABLE" error message on my PS3)
    c) under audio tab select default AAC-LC
    d) under streaming tab select default "not enabled"
    I transfer the resulting high definition .MP4 file to the PS3 by one of the following methods:
    ethernet network connection
    iPod/thumb drive
    SD-card
    I have to hit the "alternate menu" under the PS3 video section and select "display all files" to see the video file and then save it to the local PS3 HDD (some dumb programming there!).
    I have heard there might be an upper limit of 4Gb on the file size (if so, another dumb move), but have not come across that limitation yet (I just got the PS3 about a week ago and am working through some of the same issues you seem to be struggling with).
    I think that some of the confusion regarding the PS3 relative to playing back HD from regular DVD-R is that the PS3 will hardware decode a properly encoded .MP4 HD video file from whatever media it is presented on and as such does not require a HD "authoring" container with menus and such. These so called "HD authoring tools" are currently in a pretty confused state at the moment and are the source of much incompatibility with many HD playback devices, but the PS3 bypasses all of that and plays the file directly through hardware decoding.
    ========================================================
    along with this thread
    http://discussions.apple.com/thread.jspa?messageID=7022027&#7022027
    Message was edited by: Sheryl Kingstone

  • Unable to opn FLV files and more with newest Quicktime vs 7 Pro

    Hi and thanks in advance -
    Suddenly I cannot open FLV files and I have the Flip4Mac etc plugins. NO LUCK. This is a waste of money patience and time ... or does anyone know of a way to create harmony in the cacophanous quicktime wannabe world. I have a new macbook which I adore and I am ready to throw it down the loo.
    PLEASE help. It's much appreciated.
    Sandy
    macbook dual core intel os 10.4.9   Mac OS X (10.4.9)  

    FLV is Flash Video. QuickTime isn't used (normally)
    to view them and most of use use the free Flash
    Player and its browser plug-in.
    The free Perian http://perian.org/ component may help
    you.
    hi and many thanks for the advise - stupid of me not to see that the flv = flash. I have had the perian plugin installed and running 100 percent for some time.
    I'll give it another go nonetheless and again thanks for the input! BTW the flash player has been running fine too. Perhaps a conflict?

  • CFP LV RT 2009 (ETS) Bug - Crashing on bad INI file

    Hello,
    This problem was actually touched upon in this thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=466392&jump=true#M466392
    I have found, that if the ni-rt.ini file contains any "unexpected"  or wrong parameters (like the thread above describes), my cFP 2210 with LV RT 2009 crashes. After the crash, the following is the situation:
    - The ni-rt.ini file is garbled with strange charcters.
    -  I have format the "disk"  and reinstall all software again to make it work correctly!
    This is bad, since I have never encoutnered such a problem with LV 8.2 on a cFP 2120: 
    We have two of these running in a Concrete Production Plant here in Norway.
    They have been stable for 2 years.
    I could send updates via email: Just the .rtexe and the .alias file.
    The electrical engineer at the plant used FTP to replace the existing .rtxex and .alias file,
    Then he edited the .ini file with the name of the new .rtexe.
    If any errors where entered into the .ini file, the cFP simply would report the error to one of the logs, and NOT CRASH!
    I recon this is a bug, and it may easily be reproduced by trying to enter the entries I have listed in the thread linked to above.
    Geir Ove

    Hello,
    I have updated information on this problem:
    First a little background on "how it used to be"  when running LV 8.2 RT on a cFP 2120:
    To update the cFP with a new program, I did the following over a wireless network while the cFP was running but the machine it controlled was sitting stationary:
    1) On the cFP: renamed the .rtexe to .rt (to allow the file to be deleted)
    2) Deleted booth the .alias and .rt file
    3) downloaded new .rtexe and .alias files
    4) uploaded to my PC the ni-rt.ini file. Edit the name of the startup program
    5) downloaded the new ni-rt.ini file to the cFp
    6) From my PC rebooted the cFP
    THis may seem like a wild thing to do, but it works like a charm.
    It turns out, it also works well on the cFP 2120  with LV RT 2009.
    However, on the cFP 2210  the ni-rt.ini file becomes corrupted if the file is downloaded again to the cFP while it is running.
    If, however, the cFP is rebooted into Safe Mode first, I can still do all the steps above to update the cFP.
    WHy I do not use LV to do the update? Well,  in this manner the customer can do the update with no special tools or LV knowledge.
    Also, it is valuable to be able to update the cFP without accessing it physically, because it is not easily accessible (A conveyor running under the roof of the factory !)
    I do not understand why there should be a difference between the cFP 2120 and cFP 2210 in this respect !
    But since it is, it should be documented. We use LV to save development time, but this has costed extra time in this project.
    Geir Ove

  • Premiere Pro CC 2014 Crashing with rendering, freezing system, and more

    Hello,
    I'm having some serious issues with Premiere pro on my late 2013 iMac.
    OSX 10.9.5
    3.2GHz Intel Core i5
    16GB 1600 MHz DDR3
    NVIDIA FeForce GT 755M  1024MB
    I'm working in 1920x1080 23.976fps. Media files are from sony FS700 .MTS and Cannon 5DmkIII .mov
    Multiple times per day, PP crashes on me. It all started when I was getting really choppy playback which would be accompanied by this error message:
    A Low Level Exception has occurred in ImporterMPEG (Importer)
    This would soon after lead to the program freezing and me having to force quit the program. After contacting Adobe the first time about this persistent issue, the tech explained to me that it was a "Memory Leak" issue and that there was nothing that could be done. After the support team member ended our chat online before helping me solve my issue, I called support. I provided my case number and this person picked up where the helplessly left me and did the typical Adobe one fix all: He went into the hidden library and cleared all of my preferences, removed any third party plugins, and cleared the files in the root applications Adobe folder, renamed a folder "Adobe.Old" etc.
    As I explained to the support team member on the phone, this is not a solution but rather a bandaid until it happens again.
    Low and behold it has happened again. This time the support team member had me create a new System Administrator account on my computer thinking that there was a permissions problem with my other account which was conflicting with PPCC2014. While this was a major pain to switch between the new account and any other program that I had set up for day to day work, it allowed me to continue editing and at least (at a less efficient rate) get things done.
    Now, while using my new System Administrator account, I am getting terrible crashes that not only stall the program, but force me to hard re-boot my computer. These crashes are accompanied by a terrifying looking screen that I was only able to capture once.
    They've only become more intimidating as now I cant even see the program when this happens, but this is the only screen capture that did not turn out completely black.
    I'm looking to see if anyone has had any extreme issues like this and if so how they were able to fix it. I've now spent 6+ hours with support and after the last one was told I would receive a personal email follow up by the end of the day (never happened) to take further actions based on the performance after the new account creation.
    I need help. Now.
    -John

    Hi John,
    First of all, try this: Re: A low level exception occured in: Importer MPEG (Importer)
    Next, make sure that if you updated OS X to 10.9.x, or later, you must check the following each time you update: Premiere Pro CC, CC 2014, or 2014.1 freezing on startup or crashing while working (Mac OS X 10.9, and later)
    Other things to try:
    Sign out from Creative Cloud, restart Premiere Pro, then sign in
    Update any GPU drivers
    Trash preferences
    Delete media cache
    Remove plug-ins
    Repair permissions
    Disconnect any third party hardware
    Remove QT components from Mac HD > Library > QuickTime
    If you have a CUDA GPU, ensure that the Mercury Playback Engine is set to CUDA, not OpenCL
    Disable App Nap
    Reboot
    Report back if anything here worked for you.
    Thanks,
    Kevin

  • To active Text Formatting function and more tool bars in Adobe LiveCycle Designer 11

    I have an original PDF form need to be edited to a fillable form, I can add Text Field into form as a fillable text field into this PDF form in the Design View, however I can not edit any of the  text , table and several other Objects.  I am an authorized to the Adobe LiveCycle Designer 11 , How can I active my whole tool Bar to edit the PDF file? If the otiginal PDF is locked or read only for the above objects, how can I unlock them?

    Hi,
    if you import a given PDF file into Designer, it is displayed as background artwork in your form.
    Most tools of Designer then will be deactivated.
    There is no way to edit this PDF background in Designer, as the kind of PDF you create with Designer is completely different to the one you create with Acrobat or InDesign.
    You either can edit your PDF in Acrobat or you have to build a new form in Designer from scratch, I believe.

  • Illustrator Crashes when creating new file and opening a file

    Every time I try to create a new file, or even open an existing file Illustrator crashes. I have re-installed illustrator...no luck. I have tried running Illustrator while holding SHIFT...no luck. I am using windows 7, and have no crazy drivers that I believe need to be updated.
    Thank you for your help!
    -Patrick

    Have been Googling like always after Illustrator CC crashes with these specific symptoms (Opening fine, New file of Opening existing file crashes).
    All other threads had no working solution for me and the symptoms seemed little different - Opening the program and keeping it open without opening or creating a file was no problem.
    This was the well-appreciated solution that did the trick for me.
    Re: Illustrator CC 17.1 Crashing on New File or Open File (Win 7) works under a different user?
    (In my case I think my default printer had been changed in the background by using a VPN connection this morning which I hardly use ever. Never had been thinking in that direction of course.)
    Good luck to you all.

  • Tiger Server locks up, AFP crashes, Mail Queue stops flowing and more

    Good afternoon,
    I have run into a little connundrum. I have a small business which I am trying to help out here. They have a single Mac OS X Server running version 10.4.7.
    Domain is Companyname.com
    Hostname: Server.local
    Only Internal DNS Zone is configured currently. We had a external zone and a internal zone configured recently but I removed the external companyname.com zone on recommendation from a Mac Guru I know.
    This morning Mail stopped flowing. The only thing I could see that looked weird on the server was that IPv6 was enabled on the primary NIC. I disabled that and mail began to flow again.
    One of the administrators locally went on the server after I left and tried to add a new user account.
    He indicated that LDAP appeared to crash.
    He tried this yesterday as well and it caused the server to lock up.
    If they have reached their user limit would the server crash?
    Here is the info I have so far
    "I mentioned how right before you came over I tried to create a user and then the server crashed and needed to be force restarted. Well that seems to be happening every time I try to create a new user. This is a new one. I don’t know what happened. It’s possible the server crashed while I was trying to create a user this morning making the LDAP database corrupt. I don’t know. As long as I don’t try and make a new user it seems to be okay."
    I did look in the logs and I couldn't readily see anything that may be causing this but I am open to any and all suggestions on this one.
    Thanks for your time!

    SOME MORE INFO
    Binary Images Description:
    0x1000 - 0x3fff perl /usr/bin/perl
    0x6000 - 0x8fff Fcntl.bundle /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/Fcntl/Fcntl.bundle
    0xb000 - 0xffff Socket.bundle /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/Socket/Socket.bundle
    0x1e000 - 0x37fff POSIX.bundle /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/POSIX/POSIX.bundle
    0x3c000 - 0x3ffff HiRes.bundle /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/Time/HiRes/HiRes.bun dle
    0x42000 - 0x45fff IO.bundle /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/IO/IO.bundle
    0x52000 - 0x54fff MD5.bundle /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/Digest/MD5/MD5.bundl e
    0x57000 - 0x5bfff Syslog.bundle /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level/auto/Unix/Syslog/S yslog.bundle
    0x5e000 - 0x5ffff Base64.bundle /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/MIME/Base64/Base64.b undle
    0x6a000 - 0x70fff Encode.bundle /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/Encode/Encode.bundle
    0xa8000 - 0xa8fff Hostname.bundle /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/Sys/Hostname/Hostnam e.bundle
    0xbb000 - 0xbefff SHA1.bundle /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level/auto/Digest/SHA1/S HA1.bundle
    0xc1000 - 0xcdfff DB_File.bundle /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBFile/DBFile.bundle
    0xd0000 - 0xd7fff Parser.bundle /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level/auto/HTML/Parser/P arser.bundle
    0xdb000 - 0xdcfff Cwd.bundle /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle
    0xeb000 - 0xf0fff Util.bundle /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/List/Util/Util.bundl e
    0x205000 - 0x22afff UUlib.bundle /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level/auto/Convert/UUlib /UUlib.bundle
    0x230000 - 0x248fff Zlib.bundle /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level/auto/Compress/Zlib /Zlib.bundle
    0x8fe00000 - 0x8fe50fff dyld 46.9 /usr/lib/dyld
    0x90000000 - 0x901c0fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
    0x90218000 - 0x9021dfff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
    0x90bf1000 - 0x90bfcfff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x94b27000 - 0x94b49fff libmx.A.dylib /usr/lib/libmx.A.dylib
    0x96cfa000 - 0x96e11fff libperl.dylib /System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE/libperl.dylib
    I did some searching on the darwin-thread-multi-2level/core etc... Didn't have a lot of luck finding articles on this topic. But I hope this extra information helps us get closer to a resolution. Is there a newer version of Pearl that I need to load? The version stating ???(???) kind of worries me even though the version 5.8.6 is listed later...

  • Accessing a file and more.

    Hi, I have an encrypted text file. I need to do the following things within my program to make it useful.
    1. Read the rather large 3.2MB file.
    2. Decrypt the file, it is a simple translation of A = F, B = O etc.
    3. Put each word into an ArrayList<String>.
    I'm not sure where to start and this has been a bit of a stumbling block for me.

    you might find read() useful.
    package krc.utilz.io;
    import java.util.Collection;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.io.File;
    import java.io.FileReader;
    import java.io.BufferedReader;
    import java.io.FileWriter;
    import java.io.PrintWriter;
    import java.io.InputStream;
    import java.io.FileInputStream;
    import java.io.Closeable;
    import java.io.IOException;
    import java.io.FileNotFoundException;
    * @class: krc.utilz.io.Filez
    * A collection of static "file handling" helper methods.
    public abstract class Filez
      public static final int BFRSIZE = 4096;
       * reads the given file into one big string
       * @param String filename - the name of the file to read
       * @return the contents filename
      public static String read(String filename)
        throws IOException, FileNotFoundException
        FileReader in = null;
        StringBuffer out = new StringBuffer();
        try {
          in = new FileReader(filename);
          char[] cbuf = new char[BFRSIZE];
          int n = in.read(cbuf, 0, BFRSIZE);
          while(n > 0) {
            out.append(cbuf);
            n = in.read(cbuf, 0, BFRSIZE);
        } finally {
          if(in!=null)in.close();
        return out.toString();
      * a pseudonym for read especially for perl programmers
      public static String slurp(String filename)
        throws IOException, FileNotFoundException
        return(Filez.read(filename));
       * (re)writes the given content to the given filename
       * @param String content - the new contents of the fil
       * @param String filename - the name of the file to write.
      public static void write(String content, String filename)
        throws IOException
        PrintWriter out = null;
        try {
          out = new PrintWriter(new FileWriter(filename));
          out.write(content);
        } finally {
          if(out!=null)out.close();
      * a pseudonym for write especially for perl programmers
      public static void splooge(String content, String filename)
        throws IOException, FileNotFoundException
        Filez.write(content, filename);
       * reads each line of the given file into an array of strings.
       * @param String filename - the name of the file to read
       * @return a fixed length array of strings containing file contents.
      public  static String[] readArray(String filename)
        throws IOException, FileNotFoundException
        return readList(filename).toArray(new String[0]);
       * reads each line of the given file into an ArrayList of strings.
       * @param String filename - the name of the file to read
       * @return an ArrayList of strings containing file contents.
      public static ArrayList<String> readArrayList(String filename)
        throws IOException, FileNotFoundException
        return (ArrayList<String>)readList(filename);
       * reads each line of the given file into a List of strings.
       * @param String filename - the name of the file to read
       * @return an List handle ArrayList of strings containing file contents.
      public static List<String> readList(String filename)
        throws IOException, FileNotFoundException
        BufferedReader in = null;
        List<String> out = new ArrayList<String>();
        try {
          in = new BufferedReader(new FileReader(filename));
          String line = null;
          while ( (line = in.readLine()) != null ) {
              out.add(line);
        } finally {
          if(in!=null)in.close();
        return out;
       * reads the whole of the given file into an array of bytes.
       * @param String filename - the name of the file to read
       * @return an array of bytes containing the file contents.
      public static byte[] readBytes(String filename)
        throws IOException, FileNotFoundException
        return( readBytes(new File(filename)) );
       * reads the whole of the given file into an array of bytes.
       * @param File file - the file to read
       * @return an array of bytes containing the file contents.
      public static byte[] readBytes(File file)
        throws IOException, FileNotFoundException
        byte[] out = null;
        InputStream in = null;
        try {
          in = new FileInputStream(file);
          out = new byte[(int)file.length()];
          int size = in.read(out);
        } finally {
          if(in!=null)in.close();
        return out;
       * do files A & B have the same contents
       * @param String filenameA - the first file to compare
       * @param String filenameA - the second file to compare
       * @return boolean do-these-two-files-have-the-same-contents?
      public static boolean isSame(String filenameA, String filenameB)
        throws IOException, FileNotFoundException
        File fileA = new File(filenameA);
        File fileB = new File(filenameB);
        //check for same physical file
        if( fileA.equals(fileB) ) return(true);
        //compare sizes
        if( fileA.length() != fileB.length() ) return(false);
        //compare contents (buffer by buffer)
        boolean same=true;
        InputStream inA = null;
        InputStream inB = null;
        try {
          inA = new FileInputStream(fileA);
          inB = new FileInputStream(fileB);
          byte[] bfrA = new byte[BFRSIZE];
          byte[] bfrB = new byte[BFRSIZE];
          int sizeA=0, sizeB=0;
          do {
            sizeA = inA.read(bfrA);
            sizeB = inA.read(bfrB);
            if ( sizeA != sizeB ) {
              same=false;
            } else if ( sizeA == 0 ) {
              //do nothing
            } else if ( !Arrays.equals(bfrA,bfrB) ) {
              same=false;
          } while (same && sizeA != -1);
        } finally {
          if(inA!=null)inA.close();
          if(inB!=null)inB.close();
        return(same);
       * checks the given filename exists and is readable
       * @param String filename = the name of the file to "open".
       * @param OPTIONAl String type = a short name for the file used to identify
       *  the file in any exception messages.
       *  For example: "input", "input data", "DTD", "XML", or whatever.
       * @return a File object for the given filename.
       * @throw FileNotFoundException if the given file does not exist.
       * @throw IOException if the given file is unreadable (usually permits).
      public static File open(String filename)
        throws FileNotFoundException, IOException
        return(open(filename,"input"));
      public static File open(String filename, String type)
        throws FileNotFoundException, IOException
        File file = new File(filename);
        String fullname = file.getCanonicalPath();
        if(!file.exists()) throw new FileNotFoundException(type+" file does not exist: "+fullname);
        if(!file.canRead()) throw new IOException(type+" file is not readable: "+fullname);
        return(file);
       * gets the filename-only portion of a canonical-filename, with or without
       * the extension.
       * @param String path - the full name of the file.
       * OPTIONAL @param boolean cutExtension - if true then remove any .ext
       * @return String the filename-only (with or without extension)
      public static String basename(String path) {
        return(basename(path,false));
      public static String basename(String path, boolean cutExtension)
        String fname = (new File(path)).getName();
        if (cutExtension) {
          int i = fname.lastIndexOf(".");
          if(i>0) fname = fname.substring(0,i);
        return(fname);
       * gets the directory portion of a canonical-filename
       * @param String path - the full name of the file.
       * @return String the parent directory of the given path.
      public static String dirname(String path)
        return( new File(path).getParent() );
       * close these "streams"
       * @param Closeable... "streams" to close.
      public static void close(Closeable... streams) {
        for(Closeable stream : streams) {
          if(stream==null) continue;
          try {
            stream.close();
          } catch (Exception e) {
            System.err.println(e);
    }

  • HT3775 what if I am trying to open an .avi video format file and, though, I am receiving the message that "QuickTime Player can't open this file because a required codec is not available"?

    Somebody can help?

    There are also other media players with the capabilty.
    Check the Mac App Store.  Some are free, some are not.
    They all have various features you may or may not need.
    Flip For Mac is a pretty basic (the free version) player
    for avi and other Wndows based video formats.

  • All files and more lost with software upgrade

    hello
    my in-laws called me in a panic yesterday. they used the software upgrade to install 10.5.2 and could not find their entourage mail program anymore, it was gone, so were all the files in their document folder. i connected through ichat to their computer (had to set up the accounts again, as the old ones were lost) and yes, it is all gone, though documents they saved in the applications folder are still there.
    i called tech support for them and was told that programs that are left open during installation will be deleted. isn't it impossible to continue installation until programs are quit? why would all their files be gone from the document folder? also gone were their ichat ids and safari bookmarks. it felt like an erase and install but all they did was the software install which i assume is a default installation?
    no, no back ups for them. they just recently acquired this computer on our recommendation that they would have less trouble with a mac than a pc with vista. but now this.
    they will be talking with tech support soon, but i have little faith in them, so i am asking here. what could have happened?
    thanks,
    marianna

    Welcome to Apple Discussions!
    One thing which may have happened is this article:
    http://docs.info.apple.com/article.html?artnum=107854
    However, this is an important lesson for everyone. It is not a question of if data will be lost, but when.
    See my FAQ* on backing up as to other possible recovery strategies, and make sure everyone knows never, ever install an update without backing up first. Regardless of the cause, data will eventually get lost, and updates are often the most frequent events where they happen as they change the system much like changing the guts of an automobile.
    - * Links to my pages may give me compensation.
    Message was edited by: a brody

  • Update to os 4.2 on iPhone 3G crashed phone; wiped out Contacts and more

    Is there ANY way to get my 'Contacts' back without reconstructing from scratch? Updated to iOS 4.2 on my 3G and it completely wiped-out my Contacts; Uninstalled almost all Apps; Removed Photos and Songs. Had done back-up & Sync just before doing 4.2 upgrade. Tried another Sync after the 4.2 install and got Apps & Songs back. Tried a complete reset/restore and got Apps, Songs & Photos but NO Contacts. Even the back-up on my computer seems to have been erased. It did leave the Phone's 'Favorites' but just the numbers; no names or other information. Also tried 'Import contacts from SIM' - program seemed to run but I could not find any 'Contacts' info anywhere. Any help? Any ideas? Thanks, D.

    hi, has any one got any answers to this problem as it has happened to me, is there any where else the phone back info is stored other than library/mobile sync.
    any help would be greatly appreciated, thanks.

  • More than 2 OCR files and 3 VOTE files

    Is it possible to add more than 2 OCR files and more than 3 VOTE files in 2-node RAC ?

    The Oracle Clusterware enables multiple voting disks but you must have an odd number of voting disks, such as three, five, and so on. If you define a single voting disk, then you should use external mirroring to provide redundancy.
    Regard's
    Awanish Kumar

Maybe you are looking for

  • New to Macs - desparate for help.

    Hi all--I've seen nothing but decent answers here so I figured to give it a go and hope for the best. I've just recently bought an iMac G3 at a yard sale. I purchased it from a friend who acquired it from her father. While I am no stranger to things

  • Why can't I get iTunes to close when I click the X

    This just started after I downloaded the latest iTunes.  I open it, do what I want to do and then disconnect my device and click on either the red x in the top corner or the exit in the file drop down.  iTunes refuses to close and keeps reopening.  I

  • ABAP Proxy in PI System

    HI all, i have a scenario : my source system is PI (App.sys)(client 01) from where i am sending the data to my PI (IS)(client 02 ) using ABAP    Proxy. And from there i have send the data to my 3rd party Business system using JUDD adapter. i am able

  • Where all we not needed  ENDSELECT ... in select statements.

    explain the scenarios...

  • NT Server Reboot and Forte Partitions

    I have a system administration question for users with NT servers in their Forte environment. If I have installed Forte partitions on an NT server which I would like to startup when the server is rebooted, then what are my options for scripting this