Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!tank!ncar!gatech!purdue!decwrl!hplabs!motsj1!mcdchg!clyde!watmath!watcgl!fdfishman
From: fdfishman@watcgl.waterloo.edu (Flynn D. Fishman)
Newsgroups: comp.sys.amiga.tech
Subject: Big Program, problem solved (dumb error)
Keywords: I feel so ashamed
Message-ID: <5889@watcgl.waterloo.edu>
Date: 18 Sep 88 17:23:37 GMT
Article-I.D.: watcgl.5889
Distribution: comp
Organization: U of Waterloo, Ontario
Lines: 35

Hi, Remember me:
> I have a problem that has been bugging me lately
>
> I am working on a rather large database application on the Amiga in Manx C.
> It has lots of variables and lots of routines, etc. etc.
> 
> I find that some of my variables get changed arbitrarily
> for example I have a loop that counts from 0 to fieldlength, where
> fieldlength is a global generally 12.  What happens is it counts
> from 0 to 10 and then from 1 to 10 over and over again for ever.
>  ....
>  ....

First I would like to thank everyone who sent me suggestions on helping me

The problem turned out to be a very stupid one in a one line routine to trim
undesired characters of the end of strings.  Well it seemed that the
routine did not check for strings of length 0 (It checked of NULL strings
though :-).

It turns out that the manner I was testing my Save routine resulted
in the special state whereby part of the stack could be trimmed :-)

Thanks again for all the help you guys gave me

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
Please ignore all spelling and grammarical errors.  I am using a lousy
  typewriter.  (the fact that I can not spell or speak english does not
  help matters either :-)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
-- 
FDFISHMAN (Flynn D. Fishman) @ WATCGL (but you can call me Flynn)
	UUCP  :	...!{decvax|ihnp4|clyde|allegra|utzoo}!watmath!watcgl!fdfishman
	ARPA  : fdfishman%watcgl%waterloo.csnet@csnet-relay.arpa2
	CSNET :	fdfishman%watcgl@waterloo.csnet