Uncaught exception



 DEVELOP > c-Plus-Plus > Uncaught exception

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: "George2"
Date: 28 Jan 2008 12:01:47 AM
Object: Uncaught exception
Hello everyone,
Just want to check whether my understanding is correct,
Both (1) and (2) only covers Windows C++ platform.
1. If there is uncaught exception, destructor is not ensured to be
called for active object;
2. All the resources (handles, memory, etc.) for current process will
be released when uncaught exception causing process to terminate.
thanks in advance,
George
.

User: "Christopher Pisz"

Title: Re: Uncaught exception 28 Jan 2008 01:05:15 AM
"George2" <george4academic@yahoo.com> wrote in message
news:c0f8929a-b78d-4ec1-b1d7-41efd842bfed@e6g2000prf.googlegroups.com...

Hello everyone,


Just want to check whether my understanding is correct,

Both (1) and (2) only covers Windows C++ platform.

1. If there is uncaught exception, destructor is not ensured to be
called for active object;

What's an "active" object?

2. All the resources (handles, memory, etc.) for current process will
be released when uncaught exception causing process to terminate.

Best asked in one of the microsoft.public newsgroups. Or better yet, looked
up on MSDN.
.

User: "Ian Collins"

Title: Re: Uncaught exception 28 Jan 2008 12:57:02 AM
George2 wrote:

Hello everyone,


Just want to check whether my understanding is correct,

Both (1) and (2) only covers Windows C++ platform.

Then why ask here?
--
Ian Collins.
.

User: "bjeremy"

Title: Re: Uncaught exception 28 Jan 2008 10:32:47 AM
On Jan 28, 12:01 am, George2 <george4acade...@yahoo.com> wrote:

Hello everyone,

Just want to check whether my understanding is correct,

Both (1) and (2) only covers Windows C++ platform.

1. If there is uncaught exception, destructor is not ensured to be
called for active object;

On any caught or uncaught exception, destructors for objects aren't
guaranteed to be called.

2. All the resources (handles, memory, etc.) for current process will
be released when uncaught exception causing process to terminate.

On any caught or uncaught exceptions all Resources aren't guaranteed
to be released.

thanks in advance,
George

Use RAII.
.


  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER