Return misplacing values?
- Posted by Steve <bleak_outlook at hotmail.com> Nov 14, 2005
- 431 views
Hello All, I am having a fairly strange bug. I have a multiple file program that keeps crashing out on the return values from functions. Example Code: ---------------------------------------------- File 1: (dogprog.exw) --------------- include walkthedog.ew integer dog dog = 1 dog = sniffhydrant(dog) ... File 2: (walkthedog.ew) --------------- global function sniffhydrant(integer doggie) doggie += 1 return doggie end function ---------------------------------------- In this example it would crash on "return doggie" saying that doggie has no value. At least, thats what ex.err is telling me. The strange part is that it isn't consistently doing this. Only after a few hundred iterations or so. I am using Eu 2.5 Now obviously if this was a euphoria bug someone else would have to of noticed this by now. What are some directions I can look to find the cause of this bug? I am using a timer in this program. Could it be ticking and dropping the value? (Shot from left field!) Thanks in advance! Steve A.