Slow EXE Launch.

Slow EXE Launch.

Postby byron.hopp » Tue May 07, 2024 6:55 pm

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
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Slow EXE Launch.

Postby karinha » Tue May 07, 2024 7:18 pm

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
User avatar
karinha
 
Posts: 7824
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Slow EXE Launch.

Postby byron.hopp » Tue May 07, 2024 7:27 pm

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
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Slow EXE Launch.

Postby Rick Lipkin » Tue May 07, 2024 7:39 pm

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
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Slow EXE Launch.

Postby Carles » Tue May 07, 2024 8:01 pm

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
Carles
 
Posts: 1137
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: Slow EXE Launch.

Postby Antonio Linares » Wed May 08, 2024 2:03 am

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
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Slow EXE Launch.

Postby karinha » Wed May 08, 2024 10:02 am

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 view

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
karinha
 
Posts: 7824
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Slow EXE Launch.

Postby Giovany Vecchi » Wed May 08, 2024 4:23 pm

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
Giovany Vecchi
 
Posts: 223
Joined: Mon Jun 05, 2006 9:39 pm
Location: Brasil

Re: Slow EXE Launch.

Postby karinha » Wed May 08, 2024 5:31 pm

Hago siempre asi:

Code: Select all  Expand view

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
User avatar
karinha
 
Posts: 7824
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 82 guests