[SOLVED] Projects are compiling and running twice lazarus / 13-General ---------------------------------------------------------------------- astrowhiz · 2014-10-29 16:29 Hi, I've recently got back into Pascal after about 20 years and decided to install Lazarus. Got to say it's great and I'm looking forward to learning all the tools. I have a strange problem though. Any project I Run compiles and runs twice for some reason (F9 or clicking button) In the end I did a very simple console program that just displayed text and waited for input i.e. a readln; at the end and it still happened. The first execution stayed on screen several seconds and didn't wait for input, then the second execution compiled and ran, this time waiting for input. I have 1.2.6 running on Windows 7, just the default install from the website. Apologies if I'm missing something obvious but I don't want the applications compiling/running twice and if there's a way to stop it that'd be great. ---------------------------------------------------------------------- wp · 2014-10-29 16:42 Sounds like this posting: http://forum.lazarus.freepascal.org/index.ph p/topic,26213.msg160764.html#msg160764. Add your project folder to the exclusion list of your anti-virus program. ---------------------------------------------------------------------- astrowhiz · 2014-10-29 16:57 Aha, yes I think that's it. I've added exclusions to my antivirus and that seems to have worked. I do use Avast. It's actually been pretty good for me so far. Thanks a lot for your quick reply, that's great! ---------------------------------------------------------------------- etheriel · 2015-02-15 07:39 Hello, Just to say that I experienced the same problem with Avast, and adding my project folder to excluded directory solved the problem too. Thanks a lot !