Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unit path compiled in executable

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?

like image 900
Shadi Avatar asked Sep 21 '12 19:09

Shadi


1 Answers

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!

enter image description here

The paths in your binary you will see always when you use Assert when you'll have that option turned on.

like image 195
TLama Avatar answered Sep 18 '22 06:09

TLama