Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Size of an executable

Size of an executable

Scheduled Pinned Locked Moved C / C++ / MFC
question
9 Posts 8 Posters 0 Views 1 Watching
  • 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.
  • V Offline
    V Offline
    Vinaya
    wrote on last edited by
    #1

    Hi, Is there any size limit on an executable created? My Loader application creates an executable which hosts certain data files. But the exe (having 2 GB size) fails to execute , while it was successful to execute exe having 1.5GB size. I use Win2k professional with 256MB RAM. Waiting for your valuable comments :) Thanks, Vini

    J M M B R 5 Replies Last reply
    0
    • V Vinaya

      Hi, Is there any size limit on an executable created? My Loader application creates an executable which hosts certain data files. But the exe (having 2 GB size) fails to execute , while it was successful to execute exe having 1.5GB size. I use Win2k professional with 256MB RAM. Waiting for your valuable comments :) Thanks, Vini

      J Offline
      J Offline
      Joel Holdsworth
      wrote on last edited by
      #2

      I don't have any definite knowlege on this - but it stands to reason that windows would not like this at all. I think you may just have to bite the bullet, and turn it into a loader and "companion file". If this is an installer we're talking about, and you absolutly must have one file, you could try producing an MSI file instead of a self extracting installer. Joel Holdsworth Wanna give me a job this summer? Check out my online CV and project history[^]

      1 Reply Last reply
      0
      • V Vinaya

        Hi, Is there any size limit on an executable created? My Loader application creates an executable which hosts certain data files. But the exe (having 2 GB size) fails to execute , while it was successful to execute exe having 1.5GB size. I use Win2k professional with 256MB RAM. Waiting for your valuable comments :) Thanks, Vini

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #3

        The system, on a regular x86 installation of Windows, will be unable to load an image that large because it will run out of virtual address space in the process. Stability. What an interesting concept. -- Chris Maunder

        1 Reply Last reply
        0
        • V Vinaya

          Hi, Is there any size limit on an executable created? My Loader application creates an executable which hosts certain data files. But the exe (having 2 GB size) fails to execute , while it was successful to execute exe having 1.5GB size. I use Win2k professional with 256MB RAM. Waiting for your valuable comments :) Thanks, Vini

          M Offline
          M Offline
          Maximilien
          wrote on last edited by
          #4

          you mean your exe file is 2gig ? :omg:


          Maximilien Lincourt Your Head A Splode - Strong Bad

          N 1 Reply Last reply
          0
          • M Maximilien

            you mean your exe file is 2gig ? :omg:


            Maximilien Lincourt Your Head A Splode - Strong Bad

            N Offline
            N Offline
            Nitron
            wrote on last edited by
            #5

            Maximilien wrote: you mean your exe file is 2gig ? I think he's saying his single-image setup.exe is > 2 gig... ~Nitron.


            ññòòïðïðB A
            start

            1 Reply Last reply
            0
            • V Vinaya

              Hi, Is there any size limit on an executable created? My Loader application creates an executable which hosts certain data files. But the exe (having 2 GB size) fails to execute , while it was successful to execute exe having 1.5GB size. I use Win2k professional with 256MB RAM. Waiting for your valuable comments :) Thanks, Vini

              B Offline
              B Offline
              Bob Stanneveld
              wrote on last edited by
              #6

              Hello, If the exact size of the executable is more than 2GB the problem can be that windows has not enough adress space left to create a heap and / or a stack. I don't know if the linker will complain about having not enough adress space left... But honestly, what were you thinking when you made that 1.5GB jumbo executable 500MB bigger? Like other people mentioned, you should try and put some of those MB's in a separate file. I also got the blogging virus..[^]

              V 1 Reply Last reply
              0
              • B Bob Stanneveld

                Hello, If the exact size of the executable is more than 2GB the problem can be that windows has not enough adress space left to create a heap and / or a stack. I don't know if the linker will complain about having not enough adress space left... But honestly, what were you thinking when you made that 1.5GB jumbo executable 500MB bigger? Like other people mentioned, you should try and put some of those MB's in a separate file. I also got the blogging virus..[^]

                V Offline
                V Offline
                Vini Deep
                wrote on last edited by
                #7

                Thanks for the comments. My executable contains data to create a DVD movie. Its something like packing all data inside the executable and on execution it creates a DVD movie with the data it hosts. Its not a setup exe. I cannot put the data in seperate files. It has to be one single executable. :( When the exe was 2 GB, it didn't issue any sys warning or error message, but a application error saying the header could not be read. I think the Loader didnot create the executable fully/properly. But with 1.5 GB data, it worked fine. Vini

                1 Reply Last reply
                0
                • V Vinaya

                  Hi, Is there any size limit on an executable created? My Loader application creates an executable which hosts certain data files. But the exe (having 2 GB size) fails to execute , while it was successful to execute exe having 1.5GB size. I use Win2k professional with 256MB RAM. Waiting for your valuable comments :) Thanks, Vini

                  R Offline
                  R Offline
                  Rahim Rattani
                  wrote on last edited by
                  #8

                  2GB executable file. You must be kidding ... Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

                  V 1 Reply Last reply
                  0
                  • R Rahim Rattani

                    2GB executable file. You must be kidding ... Rahim Rattani Software Engineer, Matrix Systems (Pvt) Ltd., Karachi - Pakistan

                    V Offline
                    V Offline
                    Vinaya
                    wrote on last edited by
                    #9

                    Rahim Rattani wrote: You must be kidding ... No I am not. :| Vini

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups