Im getting a error that Im having a hard time finding out whats going on with a crash here and Im hoping you guys could have helped me out.
The crash seems easy to find, but once I start tracking it by going through the code step by step, it wont crash!
Even when I come to the place where it crashed before, it wont crash if I go through it step by step in debug mode :S
If I start skipping over going into functions, it will start crashing though.
The error message that pops up by Visual Studio is:
"Microsoft C++ exception: std::bad_alloc at memory location 0x0019f3e0.."
Memory location differs ofc.
It crashes usually in mlock.c at:
void __cdecl _lock (......}
What Im trying to do is to load data from files into pointer array of classes, which has a pointer array of classes in it, which again has a point array of classes into it. It crashes when it tries to write to the inner ones.
The code is getting pretty big now, so I will refrain from posting it here unless its needed for helping me (Im guessing there is a logic to the kind of crashes Im getting atm.)