I don't have any experience with PCDK, but this is interesting. To take a step back, why did you decide on a windows application for recovery? Virtually every recovery I've seen has been done on the teach pendant.
Also, have you looked at /MD/PRGSTATE.DG? It contains the stack trace.