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