Community
    • Login

    File size limit on the notepad ++ 7 X64 ?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 8.3k Views 2 Watching
    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 AberdeenG Offline
      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 FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        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 AberdeenG Offline
          Gontran Aberdeen
          last edited by

          :( and this cannot be increased i gueuss ?

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors