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

Re: Stack overflow error


Just didn't take into account that Value triggers the event.

Regards
Gianluigi


Il 21/09/24 19:02, Bruce Steers ha scritto:
EVERY checkbox has the "check" action and the tato Group.

so this code..

Public Sub tato_Click()

   Action["check"].Value = False
   Last.Value = True

End

So Action["check"].Value = False sets EVERYTHING false

Last.Value = True will fire the tato_Click event again.

so it infinitely recurses

BruceS





On Sat, 21 Sept 2024 at 17:21, Gianluigi <gradobag@xxxxxxxxxxx
<mailto:gradobag@xxxxxxxxxxx>> wrote:

    Hi Benoit,

    I was playing a bit with Gambas and I don't understand why this code
    gives a stack overflow error

    Regards
    Gianluigi



References:
Stack overflow errorGianluigi <gradobag@xxxxxxxxxxx>
Re: Stack overflow errorBruce Steers <bsteers4@xxxxxxxxx>