CountCompile

Utilities like DBU, Make, IDE written in HMG/ used to create HMG based applications

Moderator: Rathinagiri

User avatar
Pablo César
Posts: 4053
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 175 times

CountCompile

Post by Pablo César » Sun Apr 02, 2017 2:51 pm

Currently in the last version of the IDE that Claudio has prepared (version 1.2a), it is still presenting me with problems.
This is happening with 3 last new releases of HMG.
Atypical problems have been reported and I have been avoiding the use of EDI in these last releases where debugger was introduced in it.
But this does not help to identify the problem that still exists in IDE.
Many colleagues saying that the error starts when it makes more than 20 compilations.
Others say that it presents problems when they make more than 30.
But how to know for sure, how many compilations are made and give a more accurate data ?
Before this app, I could not tell the exact number where it presents problems.
Then on my own I decided to make an application that counts the number of compilations, writing to a text file that can be accessed by any editor and can be deleted at any time.
It records with the same project name as ".Counter" extension.
Make it easy to identify and it will add as counter each time you compile determined project.
This can also be useful to know or have some idea of ​​how many builds a project took.
Some rely on this information to determine change of version number of the project.

For those who want to use, here is something very simple to use and install. This is considerated modified version that my frist release:
 
CountCompile_Exe.rar
Executable file
(1.21 MiB) Downloaded 18 times
CountCompile.rar
Source files
(666 Bytes) Downloaded 21 times
 
Just add in the Build.bat of your HMG:
Screen154.png
Screen154.png (31.85 KiB) Viewed 342 times
Add this command by editing the main Build.bat in your last HMG version as is indicated line just at one previous line of HBMK2 of your Build.bat.

When IDE crash it, just give a look inside the counter file with name of the project and extension of ".Counter". If you want to reset number (each time you close your project and close IDE) you just delete <Project_Name>.Counter file.

If by mistake you have reset it or you want to recompose the number of your compilations. You can execute this at line command prompt by typing:

CountCompile <Project_Name> <Number_of_compilations_to_be considered>

Or just re-edit the <Project_Name>.Counter file.

I hope it's useful.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
serge_girard
Posts: 1750
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 231 times
Been thanked: 45 times
Contact:

Post by serge_girard » Sun Apr 02, 2017 4:13 pm

Thx Pablo, I'll try !

Serge

User avatar
serge_girard
Posts: 1750
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 231 times
Been thanked: 45 times
Contact:

Post by serge_girard » Mon Apr 03, 2017 8:51 am

Pablo: error at count 30... today

S

User avatar
Pablo César
Posts: 4053
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 175 times

Post by Pablo César » Mon Apr 03, 2017 10:18 am

Wow # 30...
It could be something with incremental buildings ?
I hope Claudio would find the cause of these errors...

Thank you Serge !
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
serge_girard
Posts: 1750
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 231 times
Been thanked: 45 times
Contact:

Post by serge_girard » Mon Apr 03, 2017 11:13 am

Now again at 20 !

Serge

User avatar
Pablo César
Posts: 4053
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 175 times

Post by Pablo César » Mon Apr 03, 2017 11:43 am

So it's intermittent behavior ...

Have you tried "Reset Project Incremental Data" and then do another 20 or 30 compilations tries ?

Sorry to ask this and thank you for reporting.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
serge_girard
Posts: 1750
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 231 times
Been thanked: 45 times
Contact:

Post by serge_girard » Mon Apr 03, 2017 12:05 pm

Yes, and now 63 compiles without problems!
S

User avatar
Pablo César
Posts: 4053
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 175 times

Post by Pablo César » Mon Apr 03, 2017 12:16 pm

Wow !
Claudio has a more precise behaviour of compiling action now in IDE.

Incremental could it makes faster but not safe...

It's a pety... I really like working through IDE ...

Thank you Serge.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Pablo César
Posts: 4053
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 175 times

Post by Pablo César » Mon Apr 03, 2017 12:23 pm

We could continue to work with version 1.0.8... in this version this it doesn't happen with this kind of problem...

And back to use 1.2a when you really need to use the GUI debugger.
Too bad they miss the few repairs that were done in 1.2 version...

This is very easy for me to let it settled in Call_IDE because I already renamed and copied to C:\hmg.3.4.4\IDE\IDE_NoDebugger.exe.

I use to open HBP files by clicking on it and then opens this 1.0.8 IDE version. ;)

I will desist for a while upto new IDE be released.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Pablo César
Posts: 4053
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 175 times

Post by Pablo César » Mon Apr 03, 2017 5:51 pm

IDE came out with error at 35 compilations (not increment was reseted).

Have you noted Sereg when crashed we can not close the IDE at [x] button ? Have you passed by that ?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest