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. EXE Doubles in Size with every Resorce Compile

EXE Doubles in Size with every Resorce Compile

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsstutorialquestionannouncement
4 Posts 3 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.
  • L Offline
    L Offline
    Lucky the code machine
    wrote on last edited by
    #1

    Please Help me! Every time the Resource is re-compiled (ie i move a button) the resource file will grow & cause the EXE file to double in size. A work mate has had the same problem in the past. The problem is with the MS FLEX GRID control causing the Resource (rc) file to grow. My work mate was able to fix this problem by formating his HDD & re-installing everything then using an old rc file that he then had to update. His code has been happy ever after but what is to say it wont happen again. This is an option for me but we need to understand the problem to stop it happening again. If I look at my rc file other controls are fine: (example) IDC_AttenOffset, 0x403, 7, 0 0x2e35, 0x2035, 0x4264, "\000" But If you look at any of my 3 MS FLEX GRID controls: IDC_GRID, 0x37a, 302, 64 0x0024, 0x0000, 0x0037, 0x0032, 0x0045, 0x0036, 0x0037, 0x0031, 0x0032, 0x0030, 0x002d, 0x0035, 0x0039, 0x0035, 0x0039, 0x002d, 0x0031, 0x0031, 0x0063, 0x0066, 0x002d, 0x0039, 0x0031, 0x0046, 0x0036, 0x002d, 0x0043, 0x0032, 0x0038, 0x0036, 0x0033, 0x0043, 0x0033, 0x0038, 0x0035, 0x0045, .............. This goes on & on for 40MB!! :wtf: Someone else must have had thid problem. Please help me! An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky

    A S 2 Replies Last reply
    0
    • L Lucky the code machine

      Please Help me! Every time the Resource is re-compiled (ie i move a button) the resource file will grow & cause the EXE file to double in size. A work mate has had the same problem in the past. The problem is with the MS FLEX GRID control causing the Resource (rc) file to grow. My work mate was able to fix this problem by formating his HDD & re-installing everything then using an old rc file that he then had to update. His code has been happy ever after but what is to say it wont happen again. This is an option for me but we need to understand the problem to stop it happening again. If I look at my rc file other controls are fine: (example) IDC_AttenOffset, 0x403, 7, 0 0x2e35, 0x2035, 0x4264, "\000" But If you look at any of my 3 MS FLEX GRID controls: IDC_GRID, 0x37a, 302, 64 0x0024, 0x0000, 0x0037, 0x0032, 0x0045, 0x0036, 0x0037, 0x0031, 0x0032, 0x0030, 0x002d, 0x0035, 0x0039, 0x0035, 0x0039, 0x002d, 0x0031, 0x0031, 0x0063, 0x0066, 0x002d, 0x0039, 0x0031, 0x0046, 0x0036, 0x002d, 0x0043, 0x0032, 0x0038, 0x0036, 0x0033, 0x0043, 0x0033, 0x0038, 0x0035, 0x0045, .............. This goes on & on for 40MB!! :wtf: Someone else must have had thid problem. Please help me! An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky

      A Offline
      A Offline
      Alexander M
      wrote on last edited by
      #2

      delete the flex grid Don't try it, just do it! ;-)

      1 Reply Last reply
      0
      • L Lucky the code machine

        Please Help me! Every time the Resource is re-compiled (ie i move a button) the resource file will grow & cause the EXE file to double in size. A work mate has had the same problem in the past. The problem is with the MS FLEX GRID control causing the Resource (rc) file to grow. My work mate was able to fix this problem by formating his HDD & re-installing everything then using an old rc file that he then had to update. His code has been happy ever after but what is to say it wont happen again. This is an option for me but we need to understand the problem to stop it happening again. If I look at my rc file other controls are fine: (example) IDC_AttenOffset, 0x403, 7, 0 0x2e35, 0x2035, 0x4264, "\000" But If you look at any of my 3 MS FLEX GRID controls: IDC_GRID, 0x37a, 302, 64 0x0024, 0x0000, 0x0037, 0x0032, 0x0045, 0x0036, 0x0037, 0x0031, 0x0032, 0x0030, 0x002d, 0x0035, 0x0039, 0x0035, 0x0039, 0x002d, 0x0031, 0x0031, 0x0063, 0x0066, 0x002d, 0x0039, 0x0031, 0x0046, 0x0036, 0x002d, 0x0043, 0x0032, 0x0038, 0x0036, 0x0033, 0x0043, 0x0033, 0x0038, 0x0035, 0x0045, .............. This goes on & on for 40MB!! :wtf: Someone else must have had thid problem. Please help me! An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky

        S Offline
        S Offline
        Shay Harel
        wrote on last edited by
        #3

        I had this before and I ended up manually erasing the extra stuff that was full of 0x00 and then it never came back. The flex grid is for free but it sucks sometimes....I know

        L 1 Reply Last reply
        0
        • S Shay Harel

          I had this before and I ended up manually erasing the extra stuff that was full of 0x00 and then it never came back. The flex grid is for free but it sucks sometimes....I know

          L Offline
          L Offline
          Lucky the code machine
          wrote on last edited by
          #4

          Thanks to both of you. I had tryed that before with no luck as I think my 40MB Resource file was too far shot. I did solve the problem tho by creating a new dialog on another PC & adding a fresh MS Flex Grid. I then Copyed this section from the Resource file & Pasted it into my Project Resource file in place of the currup ones. Then After re-loading into C++ I re-applyed my previous Grid Settings & Re-compiled. The EXE & RC have stopped doubleing & My EXE went from 20MB back to 700K!! :cool: An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky

          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