Is the stack unwound when you stop debugging?

Just curious if my destructors are being called.
(Specifically for Visual Studio, when you hit the red stop button)

Upvotes: 3

Views: 900

Answers (2)

Brian R. Bondy
Brian R. Bondy

Reputation: 347256

No the process is terminated in VS2005, VS2008 and VS2010 when you press stop debugging.

You can easily check this by making a destructor that writes something to a file (and flushes output).

I'm not sure what standard you mean, but there is no standard that would define this behavior.

Upvotes: 5

zildjohn01
zildjohn01

Reputation: 11515

~~~~~~~~~~~
Nope.
~~~~~~~~~~~

Upvotes: 2

Related Questions