Page 1 of 1
IDE: Confirming termination of running programs
Posted: Wed May 09, 2007 2:28 pm
by AND51
Hello!
If you are running programs with Compile/Run and then close the IDE, it terminates ALL child processes.
Please, add a MessageRequester for the user to confirm process termination.
Posted: Wed May 09, 2007 3:34 pm
by Trond
Please, if you add this, add an option to disable this. Delphi does this and it's extremely annoying.

Posted: Wed May 09, 2007 4:05 pm
by freak
Only debugged executables are killed, because they cannot continue running
without the debugger (the IDE in this case)
If you want to keep the exe running after closing the IDE, you cannot use its debugger (which makes sense).
Just use the standalone/console debugger, or no debugger at all and it will not be killed.
Posted: Wed May 09, 2007 9:18 pm
by AND51
Trond wrote:Please, if you add this, add an option to disable this. Delphi does this and it's extremely annoying.

When I wrote the 1st post, I was thinking of Delphi, yes! I find this extremely useful!
But I would like to make an agreement: There may be an option somewhere in the preferences!
@ freak:
Ohhh.... I always use the integrated debugger... the others are somehow unhandy for me. Your reason makes sense closing IDE = closing debugger => terminating child processes.
But this is not even documented in the manual.
IMHO, there are 3 possibilities:
1. Add this 'behaviour' to the manual
2. Adding a YES/NO-MessageRequester to the IDE as requested
3. When a debugging session is in progess, then don't close, but HIDE the IDE until the child process has ended
I prefer solution 2+3. These are only ideas, feel free to discuss in this thread!
Posted: Wed May 09, 2007 10:21 pm
by Trond
freak wrote:Only debugged executables are killed, because they cannot continue running
without the debugger (the IDE in this case)
If you want to keep the exe running after closing the IDE, you cannot use its debugger (which makes sense).
Just use the standalone/console debugger, or no debugger at all and it will not be killed.
I think he means to get a question, and if he answers no then the IDE doesn't close. It should simply continue.
But it's
Code: Select all
almooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooost
more annoying than people stretching the tables.

Posted: Wed May 09, 2007 11:11 pm
by AND51
> I think he means to get a question, and if he answers no then the IDE doesn't close. It should simply continue.
Yes. Did I express myself that unclear? I'm sorry, if so.
I would appreciate this feature. However, some ppl like Trond, obviously don't like this. So I would like to see this as an option in the preferences!
With this option, everybody can decide on his/her own, if he/she wants to use this feature.
Posted: Wed May 09, 2007 11:55 pm
by freak
> With this option, everybody can decide on his/her own, if he/she wants to use this feature.
We cannot simply add a preferences option for every simple thing.
This will only explode the preferences dialog and help nobody as with too many options
for unimportant things you cannot find the important ones anymore.
Posted: Thu May 10, 2007 12:11 am
by AND51
Hi!
I don't want to request "every tiny thing" that comes to my mind!
IMHO, the preferences dialogue does not explode, if you would add this option.
If I had an idea, I would realize this as an external tool, but I must know how to allow/disallow the IDE to close itself and I must examine the IDE's child processes: Have you got an idea or is my work unneccessary, because you would like to add this feature now?