home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
hltrex.zip
/
read.me
< prev
next >
Wrap
Text File
|
1993-11-10
|
2KB
|
40 lines
Mike:
Hopefully I've included everything you need to try this out. What
I've been doing to test the API is:
(1) Open one OS/2 full-screen or windowed session, and run the enclosed
REXX command file there. The REXX file just runs in a loop until
you press CTRL-BREAK or (hopefully) a HALT is raised by an
external process.
(2) Open a second OS/2 full-screen or windowed session, and get the
process ID of the REXX command file by using either PSTAT or
RUNNING2. The thread ID should always be 1 in this case, since
the REXX command file is not multithreaded.
(3) Once you have the process ID of the REXX command file, you should be
able to halt it by running REXHALT and supplying the PID. If
everything was working as expected, you should also be able to
pop the REXX command file into interactive debug mode by
telling REXHALT to use RexxSetTrace instead of RexxHalt.
The REXX command file does assume that you have already loaded REXXUTIL,
which I do in my STARTUP.CMD file.
One caveat is that REXHALT asks for the PID and TID in decimal. Sorry about
that; I just never got around to adding the numeric base to the atol()'s.
REXHALT prints the values in hexadecimal, which will let you confirm that you
got it right.
Feel free to make whatever changes are necessary, and contact me at
(404) 242-9562 x215 if you have any questions at all. If you need to
send something back to me, my CompuServ ID is 72420,1546 (that's an
Intersoft ID; although it is registered to David Williams, we all
use it as a companywide ID.)
Thanks in advance for your time and help,
Jonathan Somers