Just an update.
I have found many comments about a false positive with Delphi. So, the first (and easiest) step is to exclude the default projects folder from a virus check.
This works for both Delphi 2007 and 2010. But, it would be impractical to add a folder exclusion for every program.
The next idea is to exclude the process bds.exe from virus warning. This also works (for both 2007 and 2010 and all new Delphi projects). But, I would very much like to hear comments about the safety of this action.
Next, I got a warning about "SetThreadContext failed" with Delphi 2007. In 2023 Michael Charles Aubrey wrote about fixing this.
Just search this: Fixing the "SetThreadContext failed" Assertion Failure in Delphi 2007 on Modern Windows Machines, Including Windows 11
I downloaded the dll fix from Embarcadero and it's now working.