Dear all,
I developed a small application to measure flow rates based on a counter and a timer. The application is running but there is still an issue that I cannot solve.

The central orange button updates a counter, recalculates some variables and writes an entry in a collection. For some reason, when the button is pressed a short time after the timer is running (less than a second, sometimes longer) the button does not fire the corresponding OnSelect action. This occurs only the first time after starting the application, and that's why I wonder if it is a data initialization issue. When the app is started, all variables are initalized and the records are cleaned via the OnVisible property of the corresponding Screen element.
The code in the field OnSelect is the following:
UpdateContext ({int_Now:Now()});;
UpdateContext ({insgesamt: (insgesamt + 1);int_AccTimer: (int_AccTimer + Value(int_Now) - int_LapStart - int_LapPause);int_LapStart:Value(int_Now);int_LapPause:0})
;;Collect(EventRecord; {Count: insgesamt; ActualFlow: Text(3600*1000*Value(insgesamt)/int_AccTimer;"[$-de-DE]00");RelativeTime: Text(Time(0; 0; int_AccTimer/1000); "[$-de-DE]mm:ss")&":"&Text(Mod(int_AccTimer;1000);"[$-de-DE]000"); Last: Text(Time(0; 0; (int_AccTimer-int_LastAccTimer)/1000); "[$-de-DE]mm:ss")&":"&Text(Mod(int_AccTimer-int_LastAccTimer;1000);"[$-de-DE]000")})
;;UpdateContext ({int_LastAccTimer: int_AccTimer})
Do You have any idea about what's the cause? I thank You for any hints.
Best Regards,
Sergio