Very slow startup of Frepascal programs on just one system
I am experiencing very slow startup of all of my freepascal programs for windows on just one computer. Normally they all start pretty much instantly, but I just got a brand new Dell XPS desktop computer and they are all starting up VERY slowly, even simple console programs…. Even ‘Hello World’ take over 50 full seconds to start, even when running from a RAM Drive. Does anyone have any idea what could be going on to cause such a slowdown? They all run faster than this on an ancient XP computer, I don’t understand what’s taking so long on this new PC. All my programs are compiled with FPC 3.0.4rc1 and normally start instantly even on my slowest windows tablet pc… except for this new computer, and everything else on this computer starts very fast, it’s only all of my freepascal programs that start very very slow. Once my programs finally…… eventually…. Get around to starting, they execute just fine, no further delay in processing, disk access, or graphics. I thought it might be smart screen or a virus scanner causing the delay, so I turned those off, still have a huge delay. No matter what I do, every freepascal program I have ALWAYS takes at least 50 seconds to start on this system.
Re: Very slow startup of Frepascal programs on just one system
>Does the same happen for GUI programs compiled with FPC on that machine?
I don't have any FPC GUI programs, they are all console programs, some console with ptcgraph....
>As a test try to disable your anti virus and/or Windows Defender.
>Pretty much only security software/anti virus.
Yes that is what it was... there was some free trial of Mcafee antivirus preinstalled on this system, and it had a feature that scanned every single file every time it was opened... I have NO idea how they can possibly take over 50 seconds to scan a 70KB hello world program, they have an severe bug in their scanner, it's a silly feature anyway, because if you scan every file as it's put on the system, they why do you need to scan it again every time you use the file. Anyway the free trial was going to expire in 2 days anyway, and the delay was completely unacceptable, so I just removed the entire thing and activated windows defender and now everything is running normally.
Thanks everyone for the help getting to the problem!