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 / Options
or using CTRL + SHIFT + F11 shortcut which opens the project options dialog.
There uncheck the Assertions
check box in the Compiler
tab, save the project options and rebuild the project. Not recompile, but rebuild!
The paths in your binary you will see always when you use Assert
when you'll have that option turned on.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With