Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Throw Pin
toxcct5-Jul-07 0:10
toxcct5-Jul-07 0:10 
GeneralRe: Throw Pin
tom groezer5-Jul-07 5:25
tom groezer5-Jul-07 5:25 
GeneralRe: Throw Pin
toxcct5-Jul-07 5:35
toxcct5-Jul-07 5:35 
QuestionRe: Throw Pin
Mark Salsbery5-Jul-07 8:13
Mark Salsbery5-Jul-07 8:13 
AnswerRe: Throw Pin
toxcct5-Jul-07 21:20
toxcct5-Jul-07 21:20 
AnswerRe: Throw Pin
Mark Salsbery5-Jul-07 8:11
Mark Salsbery5-Jul-07 8:11 
GeneralRe: Throw Pin
DevMentor.org9-Jul-07 0:02
DevMentor.org9-Jul-07 0:02 
GeneralRe: Throw Pin
Mark Salsbery9-Jul-07 6:00
Mark Salsbery9-Jul-07 6:00 
I had to reread the docs about stack-based exception objects to refresh my mind on the scope of
those objects when they're thrown (see my question to toxcct).

A copy is made if it's caught by value - that's what I forgot Smile | :)


_NightOwl_ wrote:
What remains is how the code execute after this point!


"If a matching catch handler is found, and it catches by value, its formal parameter is
initialized by copying the exception object. If it catches by reference, the parameter is
initialized to refer to the exception object. After the formal parameter is initialized, the
process of unwinding the stack begins. This involves the destruction of all automatic objects
that were constructed (but not yet destructed) between the beginning of the try block associated
with the catch handler and the exception's throw site. Destruction occurs in reverse order of
construction. The catch handler is executed and the program resumes execution following the last
handler (that is, the first statement or construct which is not a catch handler).
"


Mark Salsbery
Microsoft MVP - Visual C++


This episode brought to you by the letter Z

GeneralRe: Throw Pin
DevMentor.org9-Jul-07 17:46
DevMentor.org9-Jul-07 17:46 
GeneralRe: Throw Pin
Mark Salsbery9-Jul-07 17:50
Mark Salsbery9-Jul-07 17:50 
QuestionGet data into child control inside a simple Tab control Pin
ndristephane4-Jul-07 23:54
ndristephane4-Jul-07 23:54 
AnswerRe: Get data into child control inside a simple Tab control Pin
baerten5-Jul-07 1:30
baerten5-Jul-07 1:30 
GeneralRe: Get data into child control inside a simple Tab control Pin
ndristephane5-Jul-07 1:40
ndristephane5-Jul-07 1:40 
QuestionNew to VC++ and MFC Pin
VishuABCDEFG4-Jul-07 23:17
VishuABCDEFG4-Jul-07 23:17 
AnswerRe: New to VC++ and MFC Pin
Christian Graus4-Jul-07 23:27
protectorChristian Graus4-Jul-07 23:27 
GeneralRe: New to VC++ and MFC Pin
VishuABCDEFG5-Jul-07 1:43
VishuABCDEFG5-Jul-07 1:43 
AnswerRe: New to VC++ and MFC Pin
CPallini4-Jul-07 23:30
mveCPallini4-Jul-07 23:30 
AnswerRe: New to VC++ and MFC Pin
Hamid_RT5-Jul-07 1:30
Hamid_RT5-Jul-07 1:30 
AnswerRe: New to VC++ and MFC Pin
Kevin McFarlane5-Jul-07 2:35
Kevin McFarlane5-Jul-07 2:35 
AnswerRe: New to VC++ and MFC Pin
Joe Woodbury5-Jul-07 10:08
professionalJoe Woodbury5-Jul-07 10:08 
AnswerRe: New to VC++ and MFC Pin
DevMentor.org9-Jul-07 18:08
DevMentor.org9-Jul-07 18:08 
QuestionIs there any standard for returning values from a function? Pin
Mushtaque Nizamani4-Jul-07 21:47
Mushtaque Nizamani4-Jul-07 21:47 
AnswerRe: Is there any standard for returning values from a function? Pin
toxcct4-Jul-07 22:39
toxcct4-Jul-07 22:39 
AnswerRe: Is there any standard for returning values from a function? Pin
CPallini4-Jul-07 23:12
mveCPallini4-Jul-07 23:12 
AnswerRe: Is there any standard for returning values from a function? Pin
Kenan Aksoy5-Jul-07 0:41
Kenan Aksoy5-Jul-07 0:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.