Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    File size limit on the notepad ++ 7 X64 ?

    Help wanted · · · – – – · · ·
    2
    4
    7731
    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.
    • Gontran Aberdeen
      Gontran Aberdeen last edited by

      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.

      Claudia Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        Claudia Frank @Gontran Aberdeen last edited by Claudia Frank

        @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
        • Gontran Aberdeen
          Gontran Aberdeen last edited by

          :( and this cannot be increased i gueuss ?

          Claudia Frank 1 Reply Last reply Reply Quote 0
          • Claudia Frank
            Claudia Frank @Gontran Aberdeen last edited by

            @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
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors