fdfishman@watcgl.waterloo.edu (Flynn D. Fishman) (09/19/88)
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
stevex@ziebmef.uucp (Steve Tibbett) (09/23/88)
Speaking of null pointers... Stick a few characters worth of text down at location 0 ("Hi!" or something), and watch how many programs actually USE null pointers (pointer to location 0, which is now a valid string). I've found a fair number. [Still no signature..] ...Steve Tibbett (Don't even know my own path yet) (But I guess it's at the top there somewhere, right? 8-)