Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!decvax!ittatc!dcdwest!sdcsvax!ucbvax!info-vax From: SPW2562@RITVAXC.BITNET Newsgroups: mod.computers.vax Subject: Need Help with VAX/VMS C Message-ID: <8602200928.AA12076@ucbvax.berkeley.edu> Date: Thu, 20-Feb-86 04:29:08 EST Article-I.D.: ucbvax.8602200928.AA12076 Posted: Thu Feb 20 04:29:08 1986 Date-Received: Thu, 20-Feb-86 23:22:44 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 42 Approved: info-vax@sri-kl.arpa I've been trying to write a C program on our VAX/VMS system here at RIT, but have been running into some trouble. The program is run from my LOGIN.COM to assign symbol names, and delete some symbols I don't want defined. The assigning part works fine, but when the program tries deleting symols, the following occurs: Access violation, reason mask=01, virtual address=7473B3C2, PC=00016831, PSL=03C 00000 Symbolic stack dump follows module name routine name line rel PC abs PC 00016831 00016831 00016502 00016502 LOGIN main 29 0000017A 0000077A Being a Unix* hack, I have no idea what this means. (And people complain about Unix* error messages being cryptic. I understand Unix* error messages far better than I'll ever understand this stuff.) The offening line and surrounding code are here: ... lib$set_symbol("COL*OR", "WRITE SYS$OUTPUT \"\27[2J\27[H\"", tab); lib$set_symbol("CL*EAR", "WRITE SYS$OUTPUT \"\27[0;41;33m\27[A\"", tab); => lib$delete_symbol("ONE", tab); lib$delete_symbol("LOGOUT", tab); max=strlen(name)-14; ... I've run it with 'tab' as an int with value 2, and with 'tab' #define'd as 2, and it makes no difference. When this function is called from a basic program it works fine. Can anyone tell me why this is happening, and how I can correct it? Please respond directly to either of the below two addresses, as I do not subscribe to this mailing list. *UNIX is a trademark of Bell Labs. ============================================================================== Steve Wall @ Rochester Institute of Technology Usenet: ..!rochester!ritcv!spw2562 (Fishhook) Unix 4.2 BSD BITNET: SPW2562@RITVAXC (Snoopy) VAX/VMS 4.2