if you use runtime packages, you need to make sure that your program has detected a new batch .bpl file.
But you probably aren't using runtime packages. Thus, the runtime program statically links Indy code using .dcu files located in the Delphi installation folders. In particular, in this case, before <ProgramFiles>\Borland\Delphi6\Lib\IdMessage.dcu . You need to make sure you link the new code. The easiest way is to add the modified file to your project. This will mean that the modified version will be compiled and linked to your program.
Since your modifications are in the device implementation section, this is all you need to do. If the changes were in the interface section, you will encounter "Node X was compiled with Unit Y version errors." You would solve this by adding the rest of the Indy source to your project.
One point to emphasize is that you should never modify files in the Delphi installation folder. If you want to make modifications to these components, take copies of the files and make changes to these copies.
source share