Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!csun!csuna!abcscnuk From: abcscnuk@csuna.csun.edu (Naoto Kimura) Newsgroups: comp.lang.pascal Subject: Re: Turbo Bug Keywords: Pascal Message-ID: <2061@csuna.csun.edu> Date: 6 Jul 89 17:53:31 GMT References: <8048@bsu-cs.bsu.edu> Reply-To: abcscnuk@csuna.csun.edu (Naoto Kimura) Organization: CSU Northridge Lines: 31 In article <8048@bsu-cs.bsu.edu> kmzvokel@bsu-cs.bsu.edu (Kenneth M. Zvokel) writes: >Does anyone out there know why when sending values to the printer thru Turbo >Pascal that values get corrupted. For instances I have a value that when printed to the screen has the value of 0 (correct) when it reaches the printer it >has any one of a number of values (28009, 25632, 12336). I have found other places where ocassionaly a value will become corrupted because they are not initialized >but this is not the case here. > > >Any help would be greatly appreciated > > >ken zvokel I think that you should clarify what is going on. Your description of your problem doesn't show much about the nature of the problem. What do you mean that you are printing a value to the screen and the printer ? Do you mean that you printed the value of a variable ? Perhaps a code fragment would help. Make sure that you've turned on the runtime checks (as this is not the default -- which is unfortunate for those people who need it the most won't know that they need to turn it on). Up to and including version 3.0, you had to make sure that you recompiled the program each time you ran it (especially if you used typed constants, which are only initialized when the program is compiled into memory or loaded from disk at the DOS command prompt). If you're using version 5.0 or later, then I would suggest using the watch window to keep an eye on your variables. //-n-\\ Naoto Kimura _____---=======---_____ (abcscnuk@csuna.csun.edu) ====____\ /.. ..\ /____==== // ---\__O__/--- \\ Enterprise... Surrender or we'll \_\ /_/ send back your *&^$% tribbles !!