Re: Weird error message
- Posted by irv Jan 15, 2019
- 909 views
alrobnett said...
I use wee. But I have some additional information as the result of successive elimination.
integer insert_nmbr object key sequence extracted_files elsif key = 22 then -- ******************* CTRL V INSERT extracted_files = dir("/home/allen/Extracted/") insert_nmbr = 1 -- intervening functional code uses 'insert_nmbr' as a 'while' condition, but commenting all that out made no difference -- -- insert_nmbr = wait_key end if
In the above snippet, I have deleted some commented lines that performed the function of inserting a subtree (immaterial).
If the line 'insert_nmbr = wait_key' is commented out, the problem disappears, in both the abbreviated test program and the full-blown program. The error message is not only not indicative, but appears in very strange places.
wait_key should have parens, since it is a function: i.e.
wait_key()
Have you by chance defined wait_key as a variable somewhere in your program?