Starting a fresh night on “the” bug. Now at least I know not to look only in my new code, so hopefully I can track it down.
Aha! Found the protection exception when the program is closed. It was caused by freeing an internal copy of the Behold file in the wrong close routine.
No luck yet looking tracing through to find the bug. Seems like its time for a printout of the problematic OrganizeForm unit. The print listing of that unit is 21 pages. Now I can sit down and spend some time just going through the code. That is a useful exercise every so often. It allows a chance to check everything over for consistency and possibly spot other bugs before they happen. The nice thing is that this can be done sitting on the couch and relaxing.