Why Does A Windows Error Pops Up In The Middle Of Running My C++ Program?
I have a C++ program running in Microsoft Visual C++ Express 2010. It goes through a loop and does hundreds of calculations and then exports the data to a text file. After it goes through 15,000 time steps a Windows error pops up and says “Code.exe has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available” and then my code stops running.
I need my code to run though almost 100,000 time steps, so this has been quite irritating. I’ve made sure the arrays where my information is stored is larger than the amount of time steps I’m running, so why would this keep happening?

you have a syntax error go back and find it.
Is your program eating up a bunch of ram? Because that could cause the problem.