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?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!