Search code examples
delphiiconsdelphi-xe5

Application icon stuck DELPHI XE5


The first time i update the icon in "project > Options > Application > Load Icon..." the icon as changed as it should, now every time i change the application icon, my app keep compiling with The old icon even if i click in "project > Options > Application > Default" or try to load a new one

The icon get stuck somewhere, but where ?

There's a way to force icon with resource file or unstuck the old icon ?

I download a icon which is a multi size ico file ( one ico file, 8 sizes )

i already try :

Reboot my computer. Change the .exe name. Copy the .exe to another computer.

same error.


Solution

  • For Windows platform, the icon (and version info) is stored in resource file (.res). And by default Delphi project includes in exe all the .res files it founds in project directory (see {$R *.res} directive in your .dpr file).

    So check all the .res files you have in your project directory to find out which of contains the default icon. You can use any resource editor for that. Then, just delete that file, but please keep backup, cause .res file may contain other important information.