My program keeps crashing during cleanup (return 0;). The error message I am receiving is;
"Run-Time Check Failure #2 - Stack around the variable 'variable' was corrupted."
My initial thinking was that somewhere I'm trying to use delete on something on the stack, and not on the heap. However, after inspecting my code I don't think that's the case. So I am really stumped at this point. Any ideas? I'd post my code, but I really wouldn't know what part of it would be helpful.