Reduce Frx and Exe file size
Did you that your Frx files and Exe files, may be bigger in size than they were supposed to? (Note: I have submitted this artical befoure but it got deleted. I don't know how.) Please Vote
AI
Ringkasan AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Kode Sumber
<p style="margin-top: 0; margin-bottom: 0"><font size="5" color="#FF0000">S.O.S about Frx and Exe file size</font></p> <p style="margin-top: 0; margin-bottom: 0"><font size="4" color="#0000FF">In some cases, the size of FRX and EXE files is higher than it should be.</font></p> <p style="margin-top: 0; margin-bottom: 0"><font size="4">These cases only involve forms with <b>picture-box </b> controls which contain pictures and</font></p> <p style="margin-top: 0; margin-bottom: 0"><font size="4">These pictures have been <b>changed</b> at least once (Replaced by a new picture)</font></p> <p style="margin-top: 0; margin-bottom: 0"> </p> <p style="margin-top: 0; margin-bottom: 0">This is caused because Visual Basic saves all binary data (Such as pictures) in the</p> <p style="margin-top: 0; margin-bottom: 0">end of the form's FRX file. Now, If you change a picture-box's picture property to a new picture the old picture will <u>not be overwritten</u>, and <u>still allocate space</u> in the frx file.</p> <p style="margin-top: 0; margin-bottom: 0">This problem also <u>effects the compiled EXE</u> file which saves all the data from the frx file.</p> <p style="margin-top: 0; margin-bottom: 0"> </p> <p style="margin-top: 0; margin-bottom: 0">In a game is was doing I had to change the Picture of an image control that contained the</p> <p style="margin-top: 0; margin-bottom: 0">Background image many times.</p> <p style="margin-top: 0; margin-bottom: 0"> </p> <p style="margin-top: 0; margin-bottom: 0"><font size="4">Findings:</font></p> <p style="margin-top: 0; margin-bottom: 0"><b>Frx File size: 1.14 MB</b></p> <p style="margin-top: 0; margin-bottom: 0"><b>Exe File size: 1.83 MB</b></p> <p style="margin-top: 0; margin-bottom: 0"> </p> <p style="margin-top: 0; margin-bottom: 0">Then I deleted the Form1.frx file and set the pictures again.</p> <p style="margin-top: 0; margin-bottom: 0"> </p> <p style="margin-top: 0; margin-bottom: 0"><font size="4">Findings:</font></p> <p style="margin-top: 0; margin-bottom: 0"><b>Frx File size: 0.340 MB (340KB only!!!)</b></p> <p style="margin-top: 0; margin-bottom: 0"><b>Exe File size: 0.412 MB (412 KB only!!!)</b></p> <p style="margin-top: 0; margin-bottom: 0"> </p> <p style="margin-top: 0; margin-bottom: 0"><font size="4">Conclusion:</font></p> <p style="margin-top: 0; margin-bottom: 0">After making a lot of changes in a program you make, and the changes concern binary data (Pictures, Ole container data) always delete the FRX files and set the properties from squad.</p>
Komentar Asli (3)
Dipulihkan dari Wayback Machine