Enable C++ exception? 
Author Message
 Enable C++ exception?

How to enable or disable C++ exception in Visual Studio 6.0?  Thanks.


Thu, 03 Mar 2005 06:47:13 GMT  
 Enable C++ exception?
Go to Project Setting- C/C++ Tab
In category combo box select C++ Language
there is check box for enabling exception

Vinod

Quote:
> How to enable or disable C++ exception in Visual Studio 6.0?  Thanks.



Thu, 03 Mar 2005 07:06:30 GMT  
 Enable C++ exception?

Quote:
> Go to Project Setting- C/C++ Tab
> In category combo box select C++ Language
> there is check box for enabling exception

> Vinod


> > How to enable or disable C++ exception in Visual Studio 6.0?  Thanks.

Thanks.  What's the purpose of disabling C++ exception handling?


Thu, 03 Mar 2005 09:19:30 GMT  
 Enable C++ exception?

Quote:
> Thanks.  What's the purpose of disabling C++ exception handling?

Historical compatibility.  For new C++ development, it makes little sense,
since many standard library features require exception handling.  Where it's
not required, disabling EH does improve performance and decrease code size.

-cd



Thu, 03 Mar 2005 10:03:26 GMT  
 Enable C++ exception?

Quote:


> > Thanks.  What's the purpose of disabling C++ exception handling?

> Historical compatibility.  For new C++ development, it makes little sense,
> since many standard library features require exception handling.  Where
it's
> not required, disabling EH does improve performance and decrease code

size.

Has anyone actually done any performance analysis on this to see exactly how
much this really affects the resulting code?

To me, it would seem that:

(no exceptions:)

BOOL fSuccess = DoSomeOperation1();

if (fSuccess) fSuccess = DoSomeOperation2();

if (fSuccess) fSuccess = DoSomeOperation3();

...

would perform worse than:

try{
DoSomeThrowOperation1();
DoSomeThrowOperation2();
DoSomeThrowOperation2();
...

Quote:
}

catch (SomeException)


Sat, 05 Mar 2005 03:08:14 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Enabling C++ Exceptions in ATL DLL

2. How to enable C++ style Exception Handling

3. Enabling Exception handling causes Linker error, help!

4. Translate a SEH exception into a C++ exception

5. Catching hardware exceptions using C++ exceptions

6. Catching SEC Exceptions as C++ Exceptions

7. Win32 structured exceptions vs C++ exceptions

8. retrieve exception context in C++ exception handler

9. Exceptions : Combining C++ and Structured Exception Handling ?

10. managed C++ wrapper around unmanaged C++ classes: causing StackOverflow exception

11. enable/disable toolbar button using pCmdUI->Enable(TRUE/FALSE) doesnt work

12. Symantec C++ 7.0.6 for the Mac (using Thick C enabled feature)

 

 
Powered by phpBB® Forum Software