Page 1 of 3

CountCompile

Posted: Sun Apr 02, 2017 2:51 pm
by Pablo César
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 233 times
CountCompile.rar
Source files
(666 Bytes) Downloaded 244 times
 
Just add in the Build.bat of your HMG:
Screen154.png
Screen154.png (31.85 KiB) Viewed 4164 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.

Re: CountCompile

Posted: Sun Apr 02, 2017 4:13 pm
by serge_girard
Thx Pablo, I'll try !

Serge

Re: CountCompile

Posted: Mon Apr 03, 2017 8:51 am
by serge_girard
Pablo: error at count 30... today

S

Re: CountCompile

Posted: Mon Apr 03, 2017 10:18 am
by Pablo César
Wow # 30...
It could be something with incremental buildings ?
I hope Claudio would find the cause of these errors...

Thank you Serge !

Re: CountCompile

Posted: Mon Apr 03, 2017 11:13 am
by serge_girard
Now again at 20 !

Serge

Re: CountCompile

Posted: Mon Apr 03, 2017 11:43 am
by Pablo César
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.

Re: CountCompile

Posted: Mon Apr 03, 2017 12:05 pm
by serge_girard
Yes, and now 63 compiles without problems!
S

Re: CountCompile

Posted: Mon Apr 03, 2017 12:16 pm
by Pablo César
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.

Re: CountCompile

Posted: Mon Apr 03, 2017 12:23 pm
by Pablo César
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.

Re: CountCompile

Posted: Mon Apr 03, 2017 5:51 pm
by Pablo César
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 ?