Unfortunately, I appear to have made a mistake somewhere, because I'm getting an error message from the COM object that is consuming the results. Sadly, it is not a very helpful error message.
At least to me.
I have asked for help from the folks who wrote the COM object. We'll see how it goes.