Okay, thanks. This project is using nested subroutines.
Just a heads up on some other issues:
I’m running into lots of crashing when debugging nested subs, unfortunately I can’t reproduce the steps, it is kind of random. PAC Control (9.6d) crashes when stepping through code occasionally and Soft PAC even hung on me once and I had to kill it.
I’ve also found that I frequently need to run a “Compile All” before downloading or I will get errors about missing something or other when downloading. Sometimes it does download, but my subroutines are never called - just get skipped over or I will get an error in the queue “Bus error”. Stopping and starting SoftPAC, running a Compile All, and re-downloading gets it all going again.
I know this isn’t terribly useful without steps, but I haven’t been able to narrow down anything reproducible.