[Gambas-user] Stop iNotify Watch

Tobias Boege tobs at taboege.de
Sat Oct 30 22:55:04 CEST 2021


On Sat, 30 Oct 2021, Jussi Lahtinen wrote:
> > Yes, and the overflowing stack causes a segfault. But in this case, it is
> > probably not caused by the event loop being called recursively with Wait,
> > but by something very similar
> >
> 
> I don't know enough details to really say for sure, but if wait is used
> inside an event handle, wouldn't that mean commands of two (or more)
> different event handlers can be executed in kinda mixed order.
> I would not expect things to work correctly even without infinite recursion.
> 

You are definitely right. I was just trying to say that in this case, the
segfault happens deterministically with Quit inside Form_Close, even with-
out the Wait. In general, Wait inside event handlers is dangerous.

Best,
Tobias

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk


More information about the User mailing list