Calendar Pro 5.62 can't complete opening script
Posted: Wed Oct 28, 2015 6:09 pm
I have a group of users who have been successfully running Calendar Pro 5.62 for years but last week it was reported to me that it now freezes on opening. After a little time dissecting the cause it appears the database is getting stuck at the following script loop (part of Apply Color Settings {Close, Dont Refresh}), called by the startup script:
Loop
Set Variable [$sc_namedVariable; Value:Let ( [ s = CalendarColors::Name ; s = Substitute ( Lower ( s ) ;["\"" ; "" ] ;["(" ; "" ] ;[")" ; "" ] ;["+" ; "" ] ;["-" ; "" ] ;[">" ; "" ] ;["<" ; "" ] ;["=" ; "" ] ;["≠" ; "" ] ;
["≤" ; "" ] ;["≥" ; "" ] ;["&" ; "" ] ;["^" ; "" ] ;["/" ; "" ] ;["*" ; "" ] ;[" or " ; "" ] ;[" and " ; "" ] ;[" not " ; "" ] ;[" xor " ; "" ] )] ; Evaluate ( "Let ( $$sc_Color" & s &" = " & CalendarColors::ColorRBGValue & " ; \"\" )" ))
Go to Portal Row [Next; Exit after last]
End Loop
If I remove this step then the opening script runs to completion, but of course it doesn't run properly.
I confess I'm not entirely certain what this loop accomplishes and I don't know why it's causing the freeze on start. Could somebody give me a clue what might have been entered into the calendar to cause this problem after years of smooth operation?
If it's of any help there are 10,742 records in the Event List and 8 records in Calendar Color Records.
Thanks.
Colin Hunter
Loop
Set Variable [$sc_namedVariable; Value:Let ( [ s = CalendarColors::Name ; s = Substitute ( Lower ( s ) ;["\"" ; "" ] ;["(" ; "" ] ;[")" ; "" ] ;["+" ; "" ] ;["-" ; "" ] ;[">" ; "" ] ;["<" ; "" ] ;["=" ; "" ] ;["≠" ; "" ] ;
["≤" ; "" ] ;["≥" ; "" ] ;["&" ; "" ] ;["^" ; "" ] ;["/" ; "" ] ;["*" ; "" ] ;[" or " ; "" ] ;[" and " ; "" ] ;[" not " ; "" ] ;[" xor " ; "" ] )] ; Evaluate ( "Let ( $$sc_Color" & s &" = " & CalendarColors::ColorRBGValue & " ; \"\" )" ))
Go to Portal Row [Next; Exit after last]
End Loop
If I remove this step then the opening script runs to completion, but of course it doesn't run properly.
I confess I'm not entirely certain what this loop accomplishes and I don't know why it's causing the freeze on start. Could somebody give me a clue what might have been entered into the calendar to cause this problem after years of smooth operation?
If it's of any help there are 10,742 records in the Event List and 8 records in Calendar Color Records.
Thanks.
Colin Hunter