#AREXX Trouble
4 messages in this thread
I am having a little trouble with AREXX…
I recently downloaded the AREXX scripts that link Directorypus and
LHA. These scripts are supposed to let Dopus work on LHA archived
files within the Dopus windows.
Unfortunatley, I get a lot of program crashes.
I have isolated the cause of two of them:
The first one is caused whenever showlist is called. If I change this to
show it works fine.
The second is caused by an exists test on a file. I have not found a
workaround for this one yet!
I am using V2.1 of AmigaDos, and the rexxsupport and rexxsys libraries
that came with the OS distribtion.
Anyone have any thoughts??
Thanx!
Bill… on Autopilot in Womelsdorf 😉
Bill,
Could you post an example of the ARexx calls that are causing problems? Try
creating a short example program that can be run directly from a shell to
exhibit the problem.
I haven't heard of any problems with either showlist() or exists(), but
problems when calling a function are sometimes caused by having a bad entry in
the ARexx external libraries list. Check your calls to addlib() (or the rxlib
command, whichever you're using) and make sure all the library names are
spelled correctly and that they're all available in the LIBS: directory.
-Bill Hawes
Unfortunately, the exists problem can not be duplicated in a seperate test
script… I tried that and it worked properly. The showlist vs. show
problem is duplicatable.
You might try downloading the file "opusarexx.lha" and looking at the
scripts there, these are the ones that are giving me headaches! I will
send you my modified versions, which seem to work as well.
And thanx!
Now, another question, I've been using Wshell for a long time now, but
when I updated my OS to V2.1 I've had a lot of problems with the CON, CNC,
etc devices. Is there an upgrade to Wshell that I should know about??
My workaround was to use another console device (KingCon) and change the
calls to start shells.
Bill… on Autopilot in Womelsdorf 😉
Bill,
You might try using a
say show(l) call before the exists call in the program that's giving you
trouble — it sounds as though you're adding a bad library name somewhere in
the program sequence. The show() function will list out everything in the
ARexx libraries list. Make sure they're spelled right (the names are
case-sensitive) and that the libraries are in LIBS:.
With OS releases after 2.04, under some conditions you may need to provide
additional stack space for the WShell DisplayHandler. To do this, try adding a
STACK 5000 to the DHOpts command line in the startup.
-Bill Hawes