I requested a feature on Delphi’s UserVoice, but I didn’t understand Nick Hodges’s answer.
- What version of Delphi supports smart linking?
- How do I enable this option?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You seem to be worrying about SysUtils specifically. Here’s what’s going on:
Smart Linking will “smartlink out” everything that it can prove that the app never uses. Unfortunately, the criteria for proof are very high. If you use a unit and it has anything in the initialization section, any code used there is guaranteed to execute, so it will be dragged into your app, along with any classes used there, plus any classes that those classes use, etc…
In the case of SysUtils, that means the full exception handling package. You can’t get rid of it without removing SysUtils from your app completely. Allen Bauer mentioned that they might use a new trick in a future release to reduce this, but for now you’re stuck with it.