home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 7833 < prev    next >
Encoding:
Text File  |  1993-01-04  |  2.1 KB  |  44 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!gatech!taco!chghpc.chem.ncsu.edu!hennesse
  3. From: hennesse@chemdept.chem.ncsu.edu (Glenn Hennesse)
  4. Subject: Re: Something with the memory
  5. Message-ID: <hennesse.27.726154776@chemdept.chem.ncsu.edu>
  6. Sender: news@ncsu.edu (USENET News System)
  7. Organization: Chemistry Department, North Carolina State University
  8. References: <4JAN93.05103290@meena.cc.uregina.ca>
  9. Date: Mon, 4 Jan 1993 13:39:36 GMT
  10. Lines: 32
  11.  
  12. In article <4JAN93.05103290@meena.cc.uregina.ca> armbrusj@meena.cc.uregina.ca writes:
  13. >From: armbrusj@meena.cc.uregina.ca
  14. >Subject: Something with the memory
  15. >Date: 4 JAN 93 05:10:32 GMT
  16. >    I was wondering if someone out there could help me with a little problem.
  17. >I'm using a very old version of Turbo Pascal (3.0) and am having trouble with
  18. >a text manipulation program I made.  I made this program to read in parts of a
  19. >text file, and produce some output to the screen.  Everything works good the
  20. >first run, just like it should.  But say I change something and re-compile it
  21. >or exit, run a different program, then come and run that one again, I get
  22. >screwed output!  It puts in control characters and other crap that is not
  23. >suppose to be there.  I think it has something to do with the memory because
  24. >everytime I startup the computer and run the program I made before any other,
  25. >it works fine.  But as soon as something else is in the memory, bam!  It goes
  26. >screwy.  Any suggestions?  It's really starting to get on my nerves.  And it's
  27. >not any TSR's, cause I removed them and it did the same thing!  Is there some
  28. >way to clear the memory as you run the program?  Any help would be muchly
  29. >appreciated!  Thanx.
  30. >
  31. >Jason
  32.  
  33. You probably have an uninitialized variable.  I have had this happen to me 
  34. and that has turned out to be the problem every time.  Check all variables 
  35. and make sure that they are being given some value (like 0 for numbers and 
  36. blank for strings).
  37. Glenn
  38. Glenn Hennessee
  39. Box 8204
  40. Department of Chemistry
  41. North Carolina State University              "It's hard to work in a group
  42. (919) 515-2947                                when you're omnipotent." --Q 
  43. Glenn_Hennessee@ncsu.edu
  44.