Thanks to Polonius for the settings of how not scan a specific directory.
This works.
More convenient than stopping Avast for a while !
I have read several posts on the Web relating the same problem with Delphi7.
Just for information, when an executable is created by Delphi, Avast reports an alarm for a Win32:trojan-gen and puts immediatly the created executable in the quarantaine directory. When scanning this executable in the quarantaine directory, AVAST finds NOTHING, NO VIRUS in the file !!! Now, if I move the executable to my DELPHI directory and reopen the related delphi code, then NO ALERT occurs when modifying and recompiling the executable. The problem occurs ONLY AT CREATION OF THE FILE, not when modifying it.
Thanks for your help
Gab