@robinyyh These days AV software goes violent towards unknown 32bit apps, sometimes making people purchase a digitally signed certificate to prevent such an inconvenience. Another way is to report an exe program to the AV base of your antivirus software support team, stating as my exe program has no malicious code, potential threads or so. Also, try to protect an executable by something like VMProtect, Enigma, etc.
But first look into compiler and linking switches: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Linking
For 64bit apps https://blogs.embarcadero.com/rad-studio-11-1-and-windows-pe-security-flags/amp/
I hope this info will help you to resolve some false positive AV detections.
----------------------------------------------
-
long time ago, I had (rarelly) false positive with RAD 10.3 and Kaspersky AV... my solution was put the folder where my exe was generated in "Excluding" on AV.
after RAD 10.4 no more false positives.
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3