T.R | Title | User | Personal Name | Date | Lines |
---|
393.1 | Perhaps SYS$DELPRC is good enough? | BISTRO::HEIN | If We don't Have it,You don't Need it! | Fri Jan 30 1987 11:12 | 1 |
|
|
393.2 | | CHOVAX::YOUNG | Back from the Shadows Again, | Sat Jan 31 1987 17:45 | 6 |
| Re .1:
I think that it used to be good enough, but that it was 'fixed'
so that it flushes & closes files for you. I'm not certain though.
-- Barry
|
393.3 | EXEC mode crash? | CHOVAX::YOUNG | Back from the Shadows Again, | Sat Jan 31 1987 17:57 | 31 |
| On thinking about this some more, I now believe that you could get
what you want with an EXEC mode bugcheck. This will cause your
process to be deleted, and will probably result in not closing your
files.
Add the following code to your BASIC program at the appropiate place:
.
.
External long by_bugcheck
.
.
Call sys$cmexec (by_bugcheck, )
.
.
Now, LINK with the following subroutine:
1 Subroutine by_bugcheck (long bad_argument)
Bad_argument = 1%
End
This should crash & burn very nicely.
-- Barry
|
393.4 | DCL STOP? | BCSE::BULKA | nick bulka | Mon Feb 02 1987 09:30 | 1 |
| Why can't you just log in again and stop the process from DCL?
|
393.5 | Crash VMS! | HOW::EVANS | Robert N. Evans DTN-225-6946 HLO2-3/P4 | Mon Feb 02 1987 13:44 | 11 |
| Any way you choose to stop the process and leave VMS running, as suggested above
allows VMS to potentially do some cleanup for you. Doing something that
actually crashes VMS will prevent this cleanup.
How about calling (from BASIC) a kernel-mode Macro routine which simply halts
the CPU? On most VAX models, the console can be set to provide an automatic
reboot. It is their problem if you have other users on your VAX ;-).
Seriously, this method should mimic a powerfail provided that there is no
battery-backup provided restart. In the case of a restart, an application
should not be able to detect that the power failed.
|
393.6 | I'm happy now. | 42413::KOSKUBA | Karel_the_cotton_fist | Wed Feb 04 1987 08:13 | 5 |
| Thanks to all contributors. I have so far tried only sys$delprc
and it works OK for what I want. I'll try the other suggestions
in due course (apart from crashing VMS - that's what I want to avoid).
Thanks again,
Karel.
|