From: CSBVAX::MRGATE!RELAY-INFO-VAX@CRVAX.SRI.COM@SMTP 20-SEP-1988 19:14 To: ARISIA::EVERHART Subj: Another SNAP fix - suspend and resume now work Received: From KL.SRI.COM by CRVAX.SRI.COM with TCP; Fri, 16 SEP 88 10:10:24 PDT Received: from drcvax.arpa by KL.SRI.COM with TCP; Fri, 16 Sep 88 10:07:43 PDT Date: 16 Sep 88 12:50:00 EDT From: "DRCV01::GRAHAM" Subject: Another SNAP fix - suspend and resume now work To: "info-vax" Hello SNAP users, A few reports clued me into this bug: The suspend and resume p/rocess functions of Modify do not work. Well, it was the combination of a mystery and a stupid mistake. It seems that FORTRAN does funny things with ELSE IF statements, I am confused here, but if you take the two statements: ELSE IF (OPTION .EQ. 2) THEN ELSE IF (OPTION .EQ. 3) THEN and remove the ELSEs, (and put ENDIFs where needed to make it proper syntax), the IFs take effect, otherwise, the ELSE IFs are not executed, even if the conditions are met...weird! Now, add these two statements: STATUS = SMG$READ_KEYSTROKE (KB_ID,DUMMY) STATUS = SMG$DELETE_VIRTUAL_DISPLAY (VD3_ID) to the end of the IF (OPTION .EQ. 3) THEN structure, just before the ENDIF. These should make the program work as advertised...until some good soul finds another bug, thatis. If anyone can enlighten me on the strange behavior of the ifs and the else ifs, I'd appreciate it. Dan Graham