Quantcast
Viewing all articles
Browse latest Browse all 2703

MFC application project, "stack around variable was corrupted" error

Hi, I have an MFC application project and I import data from a file, saving the number of lines in a variable- nr.
After I build and run there is the output window and if I resize it , the number of lines increases with each resize(like if there are 4 lines in the text file it's first 4, then 8,12,...) untill there is the error message:stack around variable "myvar" was corrupted.
I'm sure that the reading from file is correct for I verified it outside of VS, so what's the problem?

Viewing all articles
Browse latest Browse all 2703

Trending Articles