After some experiments, I was able to accomplish all the goals I set out in a console application writing in C#. In an attempt to evolve it to become user-friendly, I am trying to re-use the methods and put all of them into a Winform.
It's now when the problem occurs, during the template exporting, the process stop at a certain point as the following pictures.
The process just stops and hang there forever with CPU usage stay at 0% so it looks like it doesn't do anything.
The question is "Is this a known issue?", "Is it possible to fix the issue?" and "How can I resolve this issue in term of updating the library manually or doing configuration?".