#Modula-2
4 messages in this thread
You should import trapper into your program. At least when you follow a NULL
pointer you should get messages from the Trapper before crashing. I had a
program when following an uninitialized pointer just exited the program and
returned control to CLI. It was strange, since the program had a very obvious
infinite loop……let me know how it goes….Richie
What is trapper? Couldn't find it in any DL on CIS, or in the listing for Mod-2
from TDI. Will try to upload a priliminary by the middle of Feb.
Jim.
TRAPPER is a module that catches errors and prints useful information (such as
address of where you crashed, and why). This module comes standard with TDI
releases (source included in the developers package), but it's NOT documented.
There is a version of it in DL 10 (file: TRAPPER.ARC) which has some bug fixes.
You should use that one. To use it, just include this statement at the top of
your program "IMPORT Trapper;". Good luck…..Richie
Trapper may not catch the use of a null pointer. Still, I always import Trapper
into all my programs, 'cause you never know….
– Steve –