[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hitting "Run" only compiles (sometimes)


Le 25/08/2026 à 16:19, Bruce Steers a écrit :
WOHOO I found the bug.   :D

A Condition on line 2545 of Project.module
https://gitlab.com/gambas/gambas/-/blob/master/app/src/gambas3/.src/ Project.module?ref_type=heads#L2545 <https://gitlab.com/gambas/gambas/-/ blob/master/app/src/gambas3/.src/Project.module?ref_type=heads#L2545>

------------------
   For Each hForm In Files
     If Not hForm.IsModified() Then Continue
     Inc Application.Busy
     bSaved = True
     If hForm.Save() Then Break
   Next

   If bSaved Then Dec Application.Busy
------------------

So Application.Busy got an Inc for every modified doc but only one Dec after

modified to
     If Not bSaved Then Inc Application.Busy

So it only does Inc once.  now my error report does not report because there is no error :)

Merge request made...
https://gitlab.com/gambas/gambas/-/merge_requests/417 <https:// gitlab.com/gambas/gambas/-/merge_requests/417>

Respects
BruceS


Thanks!

--
Benoît Minisini.


References:
Hitting "Run" only compiles (sometimes)Bruce Steers <bsteers4@xxxxxxxxx>
Re: Hitting "Run" only compiles (sometimes)Yahoo <olivier.cruilles@xxxxxxxx>
Re: Hitting "Run" only compiles (sometimes)Charlie Ogier <charlie@xxxxxxxxxx>
Re: Hitting "Run" only compiles (sometimes)Bruce Steers <bsteers4@xxxxxxxxx>
Re: Hitting "Run" only compiles (sometimes)Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Hitting "Run" only compiles (sometimes)Bruce Steers <bsteers4@xxxxxxxxx>
Re: Hitting "Run" only compiles (sometimes)Bruce Steers <bsteers4@xxxxxxxxx>
Re: Hitting "Run" only compiles (sometimes)Bruce Steers <bsteers4@xxxxxxxxx>
Re: Hitting "Run" only compiles (sometimes)Bruce Steers <bsteers4@xxxxxxxxx>