hopefully someone can help me!! i have a short bit of code that for some reason, causes a runtime error when my app terminates. everything works fine with the program, except for when it closes. the error message is like this...
run-time check failure #2 - stack around the variable <blahblah> was corrupted!!
my section of code is in this format...
short int sdone = 0;
short int schoice;
/* get input from user */
if (schoice == 1)
else if (schoice == 2)
else if (schoice == 3)
sdone = 1;
everytime the user presses 3, i have the app close. but everytime when 3 is pressed, this error pops up. i am programming this app in visual studio .net professional!! please can anyone help me!! thanks!!