Slow EXE Launch.

Post Reply
byron.hopp
Posts: 388
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA
Contact:

Slow EXE Launch.

Post by byron.hopp »

I have managed to get it to where it takes 30 seconds to launch my FiveWin / Harbour exe after compile and link. Is it possible I have a bad link / mak file, I'm getting older so it seems like time should be getting faster, or is this typical. Thanks,
Thanks,
Byron Hopp
Matrix Computer Services
User avatar
karinha
Posts: 7885
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Contact:

Re: Slow EXE Launch.

Post by karinha »

VIRUS? Tested on another computer? Use AVG Antivirus. Harbour is much slower than [x]Harbour, but not by much.

¿VIRUS? ¿Probado en otra computadora? Utilice el antivirus AVG. Harbour es mucho más lento que [x]Harbour, pero no mucho.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
byron.hopp
Posts: 388
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA
Contact:

Re: Slow EXE Launch.

Post by byron.hopp »

Can't believe I couldn't put that together. I purchased a new system i9 and all of the Windows Firewall, Virus were on. I have shut them down and it is lightning fast. What is strange is that compiling with xHB (Patrick Mast) it was still fast, only on Harbour was it slow. I will have to play around with settings to find the right balance. Great answer, thanks.
Thanks,
Byron Hopp
Matrix Computer Services
User avatar
Rick Lipkin
Posts: 2668
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Slow EXE Launch.

Post by Rick Lipkin »

Bryon

I use an .EXE shrinker called Aspack .. typically the size of the .exe is at least 30-50 percent smaller .. the smaller the .exe the quicker the program loads .. another benefit of the "shrinker" is that the .exe can not be read with a hex editor that may reveal some of your code ...

Here is the link to review Aspack

http://www.aspack.com/aspack.html
User avatar
Carles
Posts: 1146
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona
Contact:

Re: Slow EXE Launch.

Post by Carles »

Hi,

put an exception in the antivirus for your folder where your exe is compiled

C.
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Antonio Linares
Site Admin
Posts: 42268
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Slow EXE Launch.

Post by Antonio Linares »

Windows Defender (built-in antivirus)

1. Open Windows Defender Security Center.
2. Click on "Virus & threat protection" from the left menu.
3. Click on "Virus & threat protection settings".
4. Under "Exclusions", click on "Add or remove exclusions".
5. Click on "Add an exclusion" and select "Folder".
6. Browse to the folder where your executable is compiled and select it.
7. Click "Add" to add the exception.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
karinha
Posts: 7885
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Contact:

Re: Slow EXE Launch.

Post by karinha »

Antonio Linares wrote:
Windows Defender (built-in antivirus)

1. Open Windows Defender Security Center.
2. Click on "Virus & threat protection" from the left menu.
3. Click on "Virus & threat protection settings".
4. Under "Exclusions", click on "Add or remove exclusions".
5. Click on "Add an exclusion" and select "Folder".
6. Browse to the folder where your executable is compiled and select it.
7. Click "Add" to add the exception.
VERSION.RC

Code: Select all | Expand

1 VERSIONINFO LOADONCALL MOVEABLE DISCARDABLE IMPURE
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEFLAGSMASK 0x0
FILEFLAGS 0x0
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
{
 BLOCK "StringFileInfo"
 {
  BLOCK "040904E4"
  {
   VALUE "Comments",    "Sistema Desenvolvido Pela Empresa TAL - www.empresatal.com.br \0"
   VALUE "CompanyName",   "Sistema Desenvolvido Pela Empresa TAL - www.empresatal.com.br \0"
   VALUE "FileDescription", "NOME DO SISTEMA\0"
   VALUE "FileVersion",   "1.0000\0"
   VALUE "InternalName",  "Projeto TAL\0"
   VALUE "LegalCopyright", "Sygecom Informática Ltda\0"
   VALUE "LegalTrademarks", "NOME SISTEMA / SYGECOM\0"
   VALUE "OriginalFilename", "NOME_EXE.EXE\0"
   VALUE "ProductName",   "NOME DO SISTEMA\0"
   VALUE "ProductVersion", "1.0000\0"
  }
 }
 BLOCK "VarFileInfo"
 {
  VALUE "Translation", 0x416, 0x4B0
 }
}
 
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
Giovany Vecchi
Posts: 223
Joined: Mon Jun 05, 2006 9:39 pm
Location: Brasil

Re: Slow EXE Launch.

Post by Giovany Vecchi »

byron.hopp wrote:I have managed to get it to where it takes 30 seconds to launch my FiveWin / Harbour exe after compile and link. Is it possible I have a bad link / mak file, I'm getting older so it seems like time should be getting faster, or is this typical. Thanks,
Hello I had a similar problem a while ago.
I noticed that fivewin creates a log file with the name of the executable with information about unloaded resources. After a few days this file was huge and when loading the program I noticed that this file was loading and was taking a long time because of its size. I deleted the LOG file and the program opened normally.
User avatar
karinha
Posts: 7885
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Contact:

Re: Slow EXE Launch.

Post by karinha »

Hago siempre asi:

Code: Select all | Expand

FUNCTION My_Exit()

   IF FILE( "NAME_EXE.log" )
      DELETEFILE( "NAME_EXE.log" )
   ENDIF

RETURN NIL
 
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Post Reply