Hi,
I think this is the first time I got this error message with mB 5.0.0.3 beta 4.
I'm not sure if there is a link with but I just played with brackets to see behavior.
mB got 98% of task processor for quite long time (1 min) before to crash.
mB 5.0.0.3 beta 4 : Violation error
Hi,
Try this code (18F452), it compiles fine.
Do not try to find something logic inside. I swaped around 800 lines.
Now in line 22 add "{" character, mB should got 98% of task processor.
If you close mb you got an error message.
reopen mb and delete "{" character at line 22.
Now, if you comment line 25 with " ' " character and add again at line 22 a "{" character, mB should got again 98% task processor.
If you close mb you got another error message different from previous one.
Try this code (18F452), it compiles fine.
Do not try to find something logic inside. I swaped around 800 lines.
Code: Select all
program Test
structure Tmenu
dim Last as byte
dim Current as byte
end structure
dim
pg_mos2 as TMenu
xc as word
sub procedure goto_xc(dim gotoxc as word)
do
if xc>gotoxc then dec(xc) end if
if xc<gotoxc then inc(xc) end if
if pg_mos2.current < 16 then
if porta = 16 then gotoxc = xc end if
else
select case pg_mos2.current
case 18 'pause
select case portA 'line 22
case 1 'droite
end select
end select
end if
loop until xc=gotoxc
end sub
main:
TRISA = $FF
TRISB = 0
TRISC = 0
TRISD = 0
ADCON1 = 7
ADCON0 = 0
CCP1CON = 0
end.
If you close mb you got an error message.
reopen mb and delete "{" character at line 22.
Now, if you comment line 25 with " ' " character and add again at line 22 a "{" character, mB should got again 98% task processor.
If you close mb you got another error message different from previous one.
Alain