CompuServe Thread

#Modula-2

4 messages in this thread
#51604From: Richard BielakJan 30, 1987 9:18 PM
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
#51796From: Jim VogelJan 31, 1987 9:19 PM
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.
#51802From: Richard BielakJan 31, 1987 9:42 PM
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
#52024From: Steve FaiwiszewskiFeb 1, 1987 7:58 PM
Trapper may not catch the use of a null pointer. Still, I always import Trapper into all my programs, 'cause you never know…. – Steve –