Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Executable VERY Slow to Run



Permlink Replies: 4 - Last Post: May 23, 2016 7:19 PM Last Post By: Jeffrey Ottery
Jeffrey Ottery

Posts: 42
Registered: 11/27/05
Executable VERY Slow to Run
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 20, 2016 11:19 PM
Running Delphi 2010 on Windows 7 Pro 64. * 8GB Ram and 64MB SSD.

Suddenly and unexpectedly one of our projects had changed behavior.
When you press "Run" the program compiles and links as normal THEN it takes about 30 seconds for the Executable to Initialize. I put a breakpoint at Application.Initialize and it does not get there for 30 seconds.

Previously it ran the Exe immediately, after linking, with no delay. Other projects are still working perfectly without delay.
Also the executable now gives the same slow response when it is run outside of the IDE.

Pulling my hair out here as I am unable to figure out what changed from yesterday to today (nothing in terms of code).

Any suggestions or ideas on how I can tackle fixing this?

Edited by: Jeffrey Ottery on May 21, 2016 3:59 AM
Roy Lambert

Posts: 1,063
Registered: 8/7/01
Re: Exectable VERY Slow to Run
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 20, 2016 11:44 PM   in response to: Jeffrey Ottery in response to: Jeffrey Ottery
Jeffrey

Different environment (D2006, W7x64, 256Gb SSD) but similar problem. In my case I have MadExcept & FastMM4 in debug mode. I think its FastMM4 and setting up for reporting memory leaks that adds time to it. Outside the IDE where FastMM4 debug is turned off things whiz along.

Roy Lambert

Jeffrey Ottery

Posts: 42
Registered: 11/27/05
Re: Exectable VERY Slow to Run
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 20, 2016 11:53 PM   in response to: Roy Lambert in response to: Roy Lambert
OK, I fixed this. It seems it was Windows Essentials running in the background scanning the executable each time it was run.

Roy Lambert wrote:
Jeffrey

Different environment (D2006, W7x64, 256Gb SSD) but similar problem. In my case I have MadExcept & FastMM4 in debug mode. I think its FastMM4 and setting up for reporting memory leaks that adds time to it. Outside the IDE where FastMM4 debug is turned off things whiz along.

Roy Lambert

Fred Schetterer

Posts: 83
Registered: 5/20/99
Re: Exectable VERY Slow to Run
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 23, 2016 8:39 AM   in response to: Jeffrey Ottery in response to: Jeffrey Ottery
Jeffrey Ottery wrote:
OK, I fixed this. It seems it was Windows Essentials running in the background scanning the executable each time it was run.

Good reminder, I took that off for some reason and the diff in speed has become very frustrating.
For Windows 10 go to Settings->Update&Security->Windows Defender->add an exclusion
Exclude a .exe, .com or .scr process, add:
bds.exe
brcc32.exe
dcc32.exe
cgrc.exe
dbkw64_[Version]_0.exe -> dbkw64_24_0.exe
Jeffrey Ottery

Posts: 42
Registered: 11/27/05
Re: Exectable VERY Slow to Run
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 23, 2016 7:19 PM   in response to: Fred Schetterer in response to: Fred Schetterer
Yes, exactly.
Frustrating when Windows Update causes problems with your environment without any notification whatsoever.

Fred Schetterer wrote:
Jeffrey Ottery wrote:
OK, I fixed this. It seems it was Windows Essentials running in the background scanning the executable each time it was run.

Good reminder, I took that off for some reason and the diff in speed has become very frustrating.
For Windows 10 go to Settings->Update&Security->Windows Defender->add an exclusion
Exclude a .exe, .com or .scr process, add:
bds.exe
brcc32.exe
dcc32.exe
cgrc.exe
dbkw64_[Version]_0.exe -> dbkw64_24_0.exe
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02