Stack around variable corrupt

Jun 6, 2010 at 8:19pm
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.




Jun 6, 2010 at 8:22pm
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
Jun 6, 2010 at 8:26pm
Edit: Nevermind. I figured it out. Just another dumb mistake of not declaring how many array elements for an array.
Last edited on Jun 7, 2010 at 2:33am
Topic archived. No new replies allowed.