Attacked by an endless loop! While adding in the code to preprocess the references, when I used my test GEDCOM, Behold would continue processing forever until I interrupted it. This is one of those bugs dreaded by programmers. It’s hard to pinpoint exactly what’s causing it and you have to step through the critical parts of your program statement by statement to find the cause - often a long and difficult task.
It did take me a while (about 3 hours) to pin this one down. Fortunately, I hadn’t added too much code since this problem came about, so there was a fixed amount of code to go though. I had, by mistake, overwrote the wrong part of the data structure during preprocessing. I was actually lucky that the endless loop occurred or I might not have noticed this error. But all is working again.
I’ve been making good progress. There are so many small little cases to handle with Sources, Repositories, Notes and Multimedia, but I’m getting there.