Does the system watchdog broadcast a specific message to terminate
an application?
The reason for asking is I have an application written in BASIC
that spawns a couple of child tasks. As part of the close down
routine it does close down any open child tasks. This appears to
be working fine. If I quit the program whilst child task is
running, then the open child task quits, as expected, same as if I
quit my application from Task display/Task manager.
However when the task is closed via system watchdog(Alt-Break), the
main task is closed, but not any open child tasks. I am therefore
wondering if there is a specific message I need to listen out for
so I can close the child tasks too?
In article <20deb3b95c.Paul@phorefaux>,
Paul Stewart <phorefaux@gmail.com> wrote:
Does the system watchdog broadcast a specific message to terminate
an application?
The reason for asking is I have an application written in BASIC
that spawns a couple of child tasks. As part of the close down
routine it does close down any open child tasks. This appears to
be working fine. If I quit the program whilst child task is
running, then the open child task quits, as expected, same as if I
quit my application from Task display/Task manager.
However when the task is closed via system watchdog(Alt-Break), the
main task is closed, but not any open child tasks. I am therefore
wondering if there is a specific message I need to listen out for
so I can close the child tasks too?
The Watchdog terminates a task immediately. The task has no control at
all, so gets no chance to take any action whatsoever. Any open files
will be left open. Such termination really should be a last resort to
regain control of the machine, but the task is toast.
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 119:55:10 |
| Calls: | 125 |
| Calls today: | 125 |
| Files: | 489 |
| D/L today: |
859 files (365M bytes) |
| Messages: | 76,577 |
| Posted today: | 26 |