Welcome at BC foldem2
There could be many causes to this problem.
I assume you get a runtime library error? Could you please post the complete text including the file it is referring to. Alternatively you could do the following :
START RUN type eventvwr and look for white crosses in red dots. A tutorial on eventviewer can be found here