home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 8085 < prev    next >
Encoding:
Text File  |  1993-01-12  |  947 b   |  23 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!alberta!frep
  3. From: frep@cs.UAlberta.CA (Geoff Baskwill)
  4. Subject: Program cores on redirection
  5. Message-ID: <frep.726870145@manning>
  6. Sender: news@cs.UAlberta.CA (News Administrator)
  7. Nntp-Posting-Host: manning.cs.ualberta.ca
  8. Organization: University of Alberta, Edmonton, Canada
  9. Date: Tue, 12 Jan 1993 20:22:25 GMT
  10. Lines: 11
  11.  
  12. I am having a problem with a Pascal program I have written, obviously, and I was 
  13. wondering if anybody has any ideas as to why it should die in this particular manner:
  14.  
  15. Whenever I try to redirect the input with < or >, for some reason it core dumps on
  16. me with a seg fault message.  If I pipe to the program, like "cat bob.txt | prog" it
  17. won't die, but if I go "cat bob.txt | prog > results" -- ACK!  It dies.  I'm using
  18. standard readln and writeln, what's going on?
  19.  
  20. Any ideas?
  21.  
  22. Geoff.
  23.