Re: WEE Locking Up
- Posted by PeteE Feb 01, 2015
- 1265 views
Yeah, I'm seeing it intermittently too. No idea what the cause is, but I have a suspicion it's the argument parser. Would you mind replacing this function at the bottom parser.e:
-- parse argument expressions, returning the last argument position global function parse_argument_position(sequence source_text) integer arg sequence e text = source_text idx = 1 tok_idx = 1 tok = "" arg = 1 for i = 1 to 1000 do if tok_idx > length(text) then return arg end if if token(")") then return 0 end if if token(",") then arg += 1 end if e = expr(1) --? {e, tok, tok_idx} if length(e) = 0 and length(tok) = 0 then return arg end if end for puts(1, "stuck parsing argument position for \""&text&"\"\n") return arg end function
If it does get stuck, it will print the offending text in the console window. Please post what it prints, if anything.
EDIT: the "exit" should have been "return arg", modified above. Otherwise it prints false positives.