OK, could somebody who's familiar with this stuff take a look at the attached please. I've stripped the program I was working on down (i.e. preserving as much of the GUI layout as possible), there's no threads, no timers and few if any event handlers.
Click repeatedly on the Connect button, note the alternating 0/1 on the status line, note the lack of alternation in the radiobuttons.
Lazarus 2.2.4 FPC 3.2.2 GTK2 (also apparent on the full program using Qt) Debian 10 with KDE desktop, also apparently on Debian 11.
I'm still sure it's really me doing something silly...
MarkMLl