W[l].resize((NeuronsInHidden+1)*NeuronsInHidden);
When I step it through, the debugger says l = 1, NeuronsInHidden = 3. I added this line just above it:
cout << W.size();
4 is printed on screen. Still, I get an unhandled exception error at that first line. I shouldnt be accessing anything out of bounds here, what could be the problem?
Unhandled exception when resizing vector
I got this line:
You probably have a buffer overrun in the vector you're resizing which is getting flagged as heap corruption by the runtime library. Check to make sure that you aren't writing outside the vector bound elsewhere in your program.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement