IDE: Confirming termination of running programs

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

IDE: Confirming termination of running programs

Post 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.
PB 4.30

Code: Select all

onErrorGoto(?Fred)
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Please, if you add this, add an option to disable this. Delphi does this and it's extremely annoying. :wink:
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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.
quidquid Latine dictum sit altum videtur
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post by AND51 »

Trond wrote:Please, if you add this, add an option to disable this. Delphi does this and it's extremely annoying. :wink:
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!
PB 4.30

Code: Select all

onErrorGoto(?Fred)
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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. :twisted:
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post 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.
PB 4.30

Code: Select all

onErrorGoto(?Fred)
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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.
quidquid Latine dictum sit altum videtur
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post 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?
PB 4.30

Code: Select all

onErrorGoto(?Fred)
Post Reply