I cannot post my complete program because it involves many packages and it would be just a waist of time for you to try and assemble it. I tried to re-create the situation with a simple example but in my example things worked just fine.
I realize it is difficult for you to spot an error like this and that's why I am asking if there is a way to debug it myself. I have a line in my code where the interpretor just blocks. It doesn't return an error and it doesn't pass this line. So the question is what can I do to see what's wrong whit it.
Thanks.