[Gambas-user] Stop iNotify Watch

Jussi Lahtinen jussi.lahtinen at gmail.com
Sat Oct 30 22:25:37 CEST 2021


> 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.

IE, this:

Public Sub Form_Close()
  Try Kill "/tmp/Cntrl_lixce-nexus"  'segfaults with or without this line
  Wait
  Quit
End

Can change on fly for example into this:

Public Sub Form_Close()
  Try Kill "/tmp/Cntrl_lixce-nexus"  'segfaults with or without this line
  Process_Kill() '' or some other event handler, which could also contain
wait and so on...
  Quit
End



Jussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20211030/634d5198/attachment.htm>


More information about the User mailing list