Page 1 of 1

mB 5.0.3 Beta 4 Syntax check error.

Posted: 14 Sep 2007 04:17
by MAN
Hi ZRistic;

By accident I get this syntax error when I compiled the program.
This error occur only if we put a key in the place of brackets on left side of index array with use of "IF" statement and maybe in another control flux of program. The program don't warn correctly, the line cursor goes for last line program+1 and the CPU of PC stay holds more than 80% of load.

Example code that generates error:

Code: Select all


Dim a, b as Byte[2]

main:
   if a{0] = 0 then
      b[0] = 0
   else
      b[0] = 1
   end if
end.

Messege window after to try to close the program.
Image

of course, this error window should be provoked by the syntax check.

Re: mB 5.0.3 Beta 4 Syntax check error.

Posted: 14 Sep 2007 08:17
by zristic
Aha, a nasty one.
Thanks for reporting. We will fix it asap.