Consider this: http://forum.avast.com/index.php?topic=3121.msg22507#msg22507
‘Delphi’ provides a number of different file access mechanisms. The oldest is in support of consoles, where the Read, ReadLn, Write and WriteLn routines have a syntax that omits the file name. These are not harmful files and thus can be excluded from real-time scanning...
Now the exclusion routine (after establishing this should be applied):
* Open Avast (Double Click on the Avast icon in the system tray )
* Select the Real-Time Shields tab
* In the right pane click on the "Expert Settings" button
In the dialog that opens up select the "Exclusions" tab.
In the right pane, (on an empty line) click on the Browse button and select the folder of your choice.
There are several other options that can be activated: that is, in what circumstances the exclusions shall be applied (Read,Write, Excecute...etc)
Finally click on the "Add"" button . (Note that a new line shall then be available for you to add another exclusion)
Hope you will get your DELPHI7 problems fixed, but avast is not the only av having issues with Delphi, F-secure may have too...