Stack around variable corrupt

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.




Post the whole thing if you can, and if it's so long that you can't then post a link or several to pastebin.
http://pastebin.com/

-Albatross
Edit: Nevermind. I figured it out. Just another dumb mistake of not declaring how many array elements for an array.
Last edited on
Topic archived. No new replies allowed.