Re: WEE Locking Up

new topic     » goto parent     » topic index » view thread      » older message » newer message

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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu