I got this error in large time intervals and totally inpredictable also. Typing a SPACE somewhere in a free code line or adding or inserting an empty code line with RETURN (like One Eye Jack posted) makes the code then compiled without problems. I don't write sophisticated code like with OpenGL, poor BlitzMax-2D Syntax only.