Jonas,<div><br></div><div>It's not happening. I have a 700kb image base64 encoded in a file called orangesky.res. I never use "procedure TestResource;" and yet the exe is 700kb larger. The only way to get rid of that extra 700k is to delete the procedure. The smart linking option or using strip do not remove the 700k.</div>
<div><br></div><div>{ TestResource procedure is not called from any code }</div><div><div>procedure TestResource;</div><div>const</div><div> Data = {$i orangesky.res}; // 700kb constant is always built into the app</div>
<div>var</div><div> S: string;</div><div> I: Integer;</div><div>begin</div><div> S := Data;</div><div> for I := 1 to 10 do</div><div> WriteLn(S[I * 10]);</div><div>end; </div></div>