The problem I'm experiencing is that my program is stopping sometimes (not always!!) without any sign of an error. I've tried many different things but nothing really helped. Could someone do some suggestions about what the problem could be?? When I know the problem I can look for solutions myself...
I will give a short explanation of my program because the code is too long to post here and like I said, I have no idea where the problem could be:
I' ve wrote a simulation program which have to do a lot of calculation and which contains a large number of "giant" loops (standard: 1000 iterations). The program has to read in a file and the output of the program is printed in a file (this has to be done 300 or 900 times in a row), so the entire programme (with the large loops) is again in a loop of 300 or 900 iterations. The problem is now that when I run the program with the input of 900 files and the number of iterations set between 500 and 1000, the program stops suddenly and always at exactly the same place. (this file can't be the problem because when I input the file individually, there's no problem. My only idea is that something (variable, filestream, something else) is limitted and receives too many information from my program at a certain point.
But if somebody has another idea, please tell me!