Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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?
0 · ·