On Tue, Apr 14, 2009 at 11:55 PM, Marshall Clow
At 3:20 PM -0700 4/14/09, Jared Lee Richardson wrote:
I'm going to try to remove even more code and narrow it down, and then I'll paste the offending code. Basically all I'm doing right now is initializing some time variables, then opening and reading from a file. It crashes on allocating 5 chars inside a function that reads from a file(or on allocating the class that contains a std::list<double> and a double).
Um - do you have a bad pointer somewhere, or a buffer overflow? When I see "Crashes while allocating", I think "heap corruption". -- -- Marshall
This is definitely my experience also. In fact if it is the only explanation
for an access violation from a non-overloaded new operator that I am aware
of. Hence I would be trying to find the perpetrator of the heap corruption.
I suggest adding:
#include