I noticed that in compiled exe there are hard-coded paths to 3rd party components units.
For example, if I use VirtualTrees component, TVirtualStringTree, in compiled executable I can find this path several times:
C:\Program Files\Borland\Delphi7\Source\Virtual Treeview\Source\VirtualTrees.pas
This applies to almost all 3rd party components I use, paths to component’s units in exe.
I think this information should not be in executable, but don’t know what I have to change in Delphi 7 settings, or in project’s settings, to get rid of it.
Does anyone have a solution please?
What you see are the assertion messages keeping the source of the assert. You can disable them if you go to
Project / Optionsor using CTRL + SHIFT + F11 shortcut which opens the project options dialog.There uncheck the
Assertionscheck box in theCompilertab, save the project options and rebuild the project. Not recompile, but rebuild!The paths in your binary you will see always when you use
Assertwhen you’ll have that option turned on.