Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!lanl!matthias@mpx2.lampf.lanl.gov From: matthias@mpx2.lampf.lanl.gov (Matthias, Bjorn E.) Newsgroups: comp.lang.fortran Subject: insidious access violation Keywords: access violation Message-ID: <62748@lanl.gov> Date: 13 Sep 90 03:07:45 GMT Sender: news@lanl.gov Reply-To: matthias@mpx2.lampf.lanl.gov Followup-To: comp.lang.fortran Organization: LAMPF Data Analysis Center, Los Alamos, New Mexico Lines: 19 Any suggestions to solve the following would be much appreciated: In a medium sized piece of code (executable of about 200 blocks) there is a very simple subroutine that I put in to cause things to wait until is hit; this to allow looking at a plot on the screen. subroutine look character*1 answ write(6,'(/,/,''$Hit to continue ...'')') read(5,'(a)') answ return end SOMETIMES the READ statement bombs with an access violation, sometimes not. I'm stumped. Ideas? Thanks very much in advance! --- Bjorn E. Matthias MATTHIAS@LAMPF (BITNET) matthias@mpx0.lampf.lanl.gov or matthias@mpx1.lampf.lanl.gov (internet)