How to locate the stack overflow?

Jul 3, 2016 at 7:35pm
Hello, C++ers,

I am writing a C++ code using MS Visual Studio. When I run it, a dialogue box showed:

Unhandled exception at 0x009CDDA9 in dgtwo2.exe: 0xC00000FD: Stack overflow (parameters: 0x00000000, 0x000B2000).

Any idea how to locate the place where a stack overflow happened, based on the above information? Many thanks!

nsi
Jul 3, 2016 at 7:40pm
closed account (E0p9LyTq)
You need to debug your program (F5) and then step through your code until the error occurs.

Posting your code here, if short enough, would not hurt so more experienced people could have a look. I'm still more of a noob myself. :)
Jul 3, 2016 at 7:50pm
The code is too big (> 5k lines). F5 is exactly what I did and then the above error information appeared. I believe it was a stack overflow and since the code is big I need to locate.
Jul 3, 2016 at 9:47pm
closed account (E0p9LyTq)
Learning how to debug with VS (or any compiler/IDE) is not something easily explained in a single, short 8,000+ character post. All I can do is point you to a resource to learn on you own, at your pace:

Introduction to Debugging
https://blogs.msdn.microsoft.com/visualstudio/2015/08/11/introduction-to-debugging/

Jul 4, 2016 at 1:00am
Thanks very much, FurryGuy! I appreciate it!
Jul 4, 2016 at 5:16am
closed account (E0p9LyTq)
You are welcome. :)
Topic archived. No new replies allowed.