Gotchas when using Delphi Update

Sometimes when you are programming using Embarcadero Delphi you will come up with a few Gotchas. These are not bugs but more as a pain.

Initially you create an application in a debug mode while you are testing the code. You have a icon for the application making it look professional and just go to the release state. The icon may or may be what you expected.

Your debug application has the correct icon but your release doesn’t. Pretty strange but Windows keeps an icon cache. The simple thing would be to rename your executable and suddenly it looks good.

You wonder why Windows would do that ? It is Windows and you have to live with that. Click on this link to see what else you can do to fix this problem.

Mr. Dennis Spreen recently commented that you can simply execute the following command:

You can just run the following command to clear the icon cache:
ie4uinit.exe -ClearIconCache

For Windows 10, use:
ie4uinit.exe -show
Baron Software

Finally the last gotcha is when your IDE message window is no longer docked. The simplest thing is to make sure you have “Auto drag docking” enabled in Tools and Options.

Grab the undocked message view by the caption and drag it
down to the bottom of the editor window. When the mouse gets within a few pixels of the lower border (it is on the tab area already) a frame indicating the docking position should appear. When you let go of the window it should dock there.

These are simple items that may be putting you hours behind project dead lines due to something you did not know before.

Leave a Reply