• Login
Community
  • Login

File size limit on the notepad ++ 7 X64 ?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 2 Posters 7.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    Gontran Aberdeen
    last edited by Oct 6, 2017, 1:33 PM

    Hello,

    I was hoping to be able to open bigger files with the X64 version of notepad 7.x, it seems still to be limited to 2 gigabyte.

    Is there any way to improve that ?

    Thanks.

    C 1 Reply Last reply Oct 6, 2017, 1:52 PM Reply Quote 0
    • C
      Claudia Frank @Gontran Aberdeen
      last edited by Claudia Frank Oct 6, 2017, 1:53 PM Oct 6, 2017, 1:52 PM

      @Gontran-Aberdeen

      no, this is a hardcoded limit. From buffer.cpp

      if (bufferSizeRequested > INT_MAX)
          {
      	    ::MessageBox(NULL, TEXT("File is too big to be opened by Notepad++"), TEXT("File size problem"), MB_OK|MB_APPLMODAL);
      

      where INT_MAX = Maximum value for a variable of type int = 2147483647 = 2GB

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 1
      • G
        Gontran Aberdeen
        last edited by Oct 6, 2017, 1:55 PM

        :( and this cannot be increased i gueuss ?

        C 1 Reply Last reply Oct 6, 2017, 1:59 PM Reply Quote 0
        • C
          Claudia Frank @Gontran Aberdeen
          last edited by Oct 6, 2017, 1:59 PM

          @Gontran-Aberdeen

          welll in theory it can be changed. If you replace INT_MAX by _I64_MAX and some code to
          refelct the int to int64 changes you get a max of 9223372036854775807 bytes.
          But no one has done this yet.

          You could give it a try and ask here for an enhancement.

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 0
          2 out of 4
          • First post
            2/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors