Menu

Crashing when opening a file

2008-01-22
2012-11-13
  • Nobody/Anonymous

    I've got Notepad++ installed on two Win XP SP2 machines, and it regularly crashes when the application starts after double-clicking on a file. Usually, simply renaming the file or copying it into the same folder allows Notepad++ to open the file.

    For example, I double-click on the following file:

    C:\Documents and Settings\cclg\My Documents\file.txt

    Notepad++ fails, and the error report's signature has the following information:

    App-Name: notepad++.exe  AppVer: 4.7.5.0  ModName: notepad++.exe
    ModVer: 4.7.5.0  Offset: 000578fb

    If I simply copy and paste that file, so that its path becomes

    C:\Documents and Settings\cclg\My Documents\Copy of file.txt

    Then Notepad++ will happily open it when I double-click on it.

    I've tried removing all the plugins (I've not installed anything other than the basic application), but it makes no difference.

    I've just upgraded from 4.5.0 to 4.7.5 but the behaviour is identical.

    Any ideas? I'd say Notepad++ is failing on the majority of files in this way.

     
    • Nobody/Anonymous

      I've just tried to reproduce the error with a text file copied out of a zip file. Notepad++ crashed again, and on examining the file's properties, it has a barmy creation date - 14 March 1623! Modification time is 5 September 2001. After making a copy in the same folder (or anywhere else for that matter), the creation date is sensible, and the file opens ok.

      The silly creation date is probably due to a bug in jZip, which is what I'm using to read and write zip files. It may be that Notepad++ has problems with silly creation dates too.

      I've just joined the jZip forums to report this to them, but it might be a useful line of investigation for Notepad++ too.

       
      • Nobody/Anonymous

        I believe this problem with an unzipped file has been reported before. I'm not sure if it was also jZip that caused it, then.

         
    • Nobody/Anonymous

      I am unable to recreate your error on my machines. I'm not sure if you'll find an answer somewhere in the thread link below, but it's worth a try. Hopefully you'll find something to point you in the right direction.

      https://sourceforge.net/forum/message.php?msg_id=4121480

       
    • Nobody/Anonymous

      Does this also happen when you start a clear, fresh Notepad++, with the option /noplugins (or something like that)?

       
    • Nobody/Anonymous

      Perhaps it is the space in the filepath that produces the crash. If the file itself has a space, like the "copy of ..." does, this probably is being fixed in the passing of the filename and/or path.

       
    • Nobody/Anonymous

      Hello,

      - Did you create the file with an other application and if yes, what kind of app?
      - Could you move the file to another folder? Happens the same issue?
      - Could you move the file to another folder and move it back? Happens the same issue?
      - Could you open the Properties of the file?

      Best Regards
      Jens