Hi Klaus, The code in your function is not quite right. The way I understand it, you are using the processFootnote function to process a single footnote. If that is the case, then this line:
while (fn.ObjectValid()) {
is not correct. The fn object will always be valid and that is why you have a runaway loop. You need this instead:
while (fnPara.ObjectValid()) {
This code will be unnecessary:
if (fnText == ""){ return; }
Rick