In a rather large program of mine, I have hit a snag. I get the following run time message:
This program has requested the runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
I have found that the following line in my code causes the crash: XFNLOD5.resize(2048);//XFNLOD5 is a std::vector<double>.
I have never run into this problem before, so for the past few hours I have been surfing the web trying to find a good answer/way to fix it. Somewhere it was suggested to use dynamic memory, so I tried: double * XFNLOD5 = newdouble ;
However, that gave the same error message. Another person suggested that this error was due to having too much memory being used, but my the point it gets to this line, there is only about 10 MB of memory used. Plus, memory shouldn't be a big deal in my case, since I have a 64-bit 12 GB RAM computer.