EXE Doubles in Size with every Resorce Compile
-
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
-
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
delete the flex grid Don't try it, just do it! ;-)
-
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
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
-
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
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