FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Slow EXE Launch.
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Slow EXE Launch.
Posted: Tue May 07, 2024 06: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
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Slow EXE Launch.
Posted: Tue May 07, 2024 07: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
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: Slow EXE Launch.
Posted: Tue May 07, 2024 07: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
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Slow EXE Launch.
Posted: Tue May 07, 2024 07: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
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: Slow EXE Launch.
Posted: Tue May 07, 2024 08: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
HIX -> https://github.com/carles9000/hix
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Slow EXE Launch.
Posted: Wed May 08, 2024 02: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
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Slow EXE Launch.
Posted: 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 (fw): Select all Collapse
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
Posts: 244
Joined: Mon Jun 05, 2006 09:39 PM
Re: Slow EXE Launch.
Posted: Wed May 08, 2024 04: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.
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Slow EXE Launch.
Posted: Wed May 08, 2024 05:31 PM
Hago siempre asi:
Code (fw): Select all Collapse
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

Continue the discussion