home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!linac!sunova!cssn0b!chow
- From: chow@cssn0b.pdsf.ssc.gov (Ivan Chow)
- Subject: strange problem on HP
- Message-ID: <1993Jan13.004841.27020@sunova.ssc.gov>
- Sender: usenet@sunova.ssc.gov (News Admin)
- Nntp-Posting-Host: cssn0b
- Reply-To: chow@cssn0b.pdsf.ssc.gov
- Organization: SSC
- Date: Wed, 13 Jan 1993 00:48:41 GMT
- Lines: 17
-
- Hi experts,
- I have a strange problem on HP. I have a FORTRAN program
- on HP. This FORTRAN program used a lots of COMMON blocks for
- passing data globally. The first version of my program runs
- fine. And now, I modify slightly the program.
- I open a file to read. OK! Now, strange thing happens,
- the values of some of my common blocks variables got messed up.
- I mean "messed up". I have no idea how the values got changed.
- (There is no segmentation error or Bus error.) What I did is just
- a simple open and read. Nothing fancy. I tried to use C to do
- the same read, the result was the same -- common block values got
- messed up. I have tried just to read a dummy variable (not related to
- the program at all). The result was the same. No matter what I do, if
- I open a file and read in the program, the problem appears.
- Can someone please help? I really have no clues. :-(
-
- Ivan
-