HP OpenVMS Systemsask the wizard |
The Question is: Is there a nway to use a system service call to detect memory errors? I've used $DEV_SCAN and $GETDVI to find errors on other devices, but memory errors are still a mystery to me. I figure if VMS can detect them; then there's probably a way to do it wit h system service calls. Anyway, I'd appreciate the help. The Answer is : There is no supported mechanism for a program to detect memory errors. (The system memory and the CPU(s) are not treated as devices, and do not have associated device data structures visible to the device-related system services.) The recommended approach to checking for memory errors is to use DIAGNOSE (DECevent) on a regular basis. -- The specific system data cell you will need to look in is EXE$GL_MEMERRS. Resolving this symbol in a program will require you to link against the SYS.STB symbol definitions on OpenVMS VAX: LINK <obj>,SYS$SYSTEM:SYS.STB/SELECT And against the base image (LINK/SYSEXE) on OpenVMS Alpha: $ LINK /SYSEXE <obj> These LINK commands will also render your program image dependent on the particular OpenVMS version the program was linked against.
|