Click here to Skip to main content
15,941,690 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: exception and global variable Pin
Cedric Moonen27-Jan-08 23:48
Cedric Moonen27-Jan-08 23:48 
GeneralRe: exception and global variable Pin
George_George27-Jan-08 23:50
George_George27-Jan-08 23:50 
GeneralRe: exception and global variable Pin
Maxwell Chen27-Jan-08 23:52
Maxwell Chen27-Jan-08 23:52 
GeneralRe: exception and global variable Pin
George_George27-Jan-08 23:59
George_George27-Jan-08 23:59 
GeneralRe: exception and global variable Pin
Maxwell Chen28-Jan-08 0:04
Maxwell Chen28-Jan-08 0:04 
JokeRe: exception and global variable Pin
CPallini28-Jan-08 0:07
mveCPallini28-Jan-08 0:07 
JokeRe: exception and global variable Pin
CPallini27-Jan-08 23:53
mveCPallini27-Jan-08 23:53 
GeneralRe: exception and global variable Pin
George_George27-Jan-08 23:49
George_George27-Jan-08 23:49 
No CPallini,


1.

CPallini wrote:
Yes, the reported original words confirm my observation: if a constructor throws and then catches itself, outside of the construction process you see nothing,


We can do anything as we like to do in exception handler, like write log.

2.

CPallini wrote:
hence Bjarne obviously refers to exceptions thrown by global object constructors AND not catched inside the constructors themselves.


If it were his point, I have no further question. But my original understanding is, there is no way to catch exceptions from constructor of global variables -- not the limitatino of catching exceptions in main. Smile | :)


regards,
George
GeneralRe: exception and global variable Pin
CPallini28-Jan-08 0:04
mveCPallini28-Jan-08 0:04 
GeneralRe: exception and global variable Pin
George_George28-Jan-08 0:17
George_George28-Jan-08 0:17 
GeneralRe: exception and global variable Pin
CPallini28-Jan-08 0:36
mveCPallini28-Jan-08 0:36 
GeneralRe: exception and global variable Pin
George_George28-Jan-08 13:38
George_George28-Jan-08 13:38 
GeneralRe: exception and global variable Pin
Maxwell Chen27-Jan-08 23:49
Maxwell Chen27-Jan-08 23:49 
GeneralRe: exception and global variable Pin
George_George27-Jan-08 23:57
George_George27-Jan-08 23:57 
GeneralRe: exception and global variable Pin
Maxwell Chen28-Jan-08 0:01
Maxwell Chen28-Jan-08 0:01 
GeneralRe: exception and global variable Pin
Rajesh R Subramanian27-Jan-08 23:34
professionalRajesh R Subramanian27-Jan-08 23:34 
GeneralRe: exception and global variable Pin
George_George27-Jan-08 23:38
George_George27-Jan-08 23:38 
JokeRe: exception and global variable Pin
CPallini27-Jan-08 23:47
mveCPallini27-Jan-08 23:47 
GeneralRe: exception and global variable Pin
George_George27-Jan-08 23:54
George_George27-Jan-08 23:54 
GeneralRe: exception and global variable Pin
Maxwell Chen27-Jan-08 23:57
Maxwell Chen27-Jan-08 23:57 
GeneralRe: exception and global variable Pin
Cedric Moonen27-Jan-08 23:13
Cedric Moonen27-Jan-08 23:13 
GeneralRe: exception and global variable Pin
George_George27-Jan-08 23:24
George_George27-Jan-08 23:24 
GeneralRe: exception and global variable Pin
Cedric Moonen27-Jan-08 23:34
Cedric Moonen27-Jan-08 23:34 
GeneralRe: exception and global variable Pin
George_George27-Jan-08 23:53
George_George27-Jan-08 23:53 
GeneralRe: exception and global variable Pin
Cedric Moonen28-Jan-08 0:05
Cedric Moonen28-Jan-08 0:05 

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.