Latent error in Flowcoding stopping compile at later date
Posted: Fri Feb 02, 2007 10:45 am
I have found an example of a β€hidden’ flowcode compile bug. The story is below as it may help you save time if you are faced with this somewhat difficult to find issue. In short the situation was :
Large programme, many macros, made some trivial changes to main code.
Programme then fails to compile and gives an undimensioned array message.
Using the undo facility on that change or even on several before made no difference.
The error was eventually tracked down to a local variable in a macro (that had not been edited for some time), where I had originally defined a local string variable but had later stopped using that local variable in the macro itself.
Going back and removing the β€orphan’ variable removed the problem.
Why the later trivial change triggered the effect and why it took so long to appear I do not know. In any case this story may save you the time if you get a similar the problem. The lesson of course being to have good housekeeping.
Happy coding,
Mark
(p.s. this was using the latest Flowcode revision, some earlier edits had been done with previous V3 updates).
Large programme, many macros, made some trivial changes to main code.
Programme then fails to compile and gives an undimensioned array message.
Using the undo facility on that change or even on several before made no difference.
The error was eventually tracked down to a local variable in a macro (that had not been edited for some time), where I had originally defined a local string variable but had later stopped using that local variable in the macro itself.
Going back and removing the β€orphan’ variable removed the problem.
Why the later trivial change triggered the effect and why it took so long to appear I do not know. In any case this story may save you the time if you get a similar the problem. The lesson of course being to have good housekeeping.
Happy coding,
Mark
(p.s. this was using the latest Flowcode revision, some earlier edits had been done with previous V3 updates).