google-code-export / gambas

Automatically exported from code.google.com/p/gambas
1 stars 0 forks source link

gb.signal - apps dont terminate #306

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) Describe the problem.

(This is one of several issues that will all use the attached project)

As soon as a signal is declared for Catching, the application will not 
terminate when closed normally.

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: TRUNK
Revision: r5037
Operating system: Linux
Distribution: PCLinuxOS
Architecture: x86
GUI component: QT4 / GTK+
Desktop used: LXDE

3) Provide a little project that reproduces the bug or the crash.
Attached

4) If your project needs a database, try to provide it, or part of it.
N/A

5) Explain clearly how to reproduce the bug or the crash.
Open the attached project in the IDE and run it.  It just shows a blank form.
Close the form and the process terminates normally.
Now, uncomment line 5: Signal[Signal.SIGUSR1].Catch
and re-run the project.
When I close the form, the process does not terminate?

6) By doing that carefully, you have done 50% of the bug fix job!

IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!

Original issue reported on code.google.com by adamn...@gmail.com on 13 Aug 2012 at 10:11

Attachments:

GoogleCodeExporter commented 9 years ago
Yes. As soon as one signal is catched, the interpreter event loop watches it. 
To quit the program, you must both close the window and stop watchings signals.

Anyway, the component needs to be rewritten because support of signal watching 
has been added to the interpreter recently. So I will do that instead of trying 
to fix the bugs.

Normally, these bugs should vanish with the rewrite,  but you will tell me! :-)

Original comment by benoit.m...@gmail.com on 14 Aug 2012 at 9:22

GoogleCodeExporter commented 9 years ago
OK. Rewrote done in revision #5039.

As soon as you call 'Signal[Signal.SIGUSR1].Reset' in the Form_Close() event 
handler, the form closes normally.

Original comment by benoit.m...@gmail.com on 14 Aug 2012 at 9:53