Unhandled exception - How to turn off!



Hello,

I don't use exception handling and things like failed memory allocations
(new()) failures are expected and handled internally. I tried setting the
VS2005 ide setting for C++ Exception Handling to No yet when new() fails it
throws up a screen about a run-time error. If running in the VS2005
environment, you get

"Unhandled exception at 0x12345 in progname.exe: Microsoft C++ exception:
std::bad_alloc at memory location 0x121345"

Continue or Break. I can continue and continue and the program runs fine.

So how to I turn off all Exception Handling so it's not used at all???

(Ah - Maybe I have to recompile the entire library which is just about
impossible to move back to the old version at this point).

So let me ask this then, how do I setup some generic exception handler in
the main module that just returns so the program continues normally?

TIA!!



.



Relevant Pages

  • Re: Unhandled exception - How to turn off!
    ... I don't use exception handling and things like failed memory allocations ... failures are expected and handled internally. ... the VS2005 ide setting for C++ Exception Handling to No yet when new ...
    (microsoft.public.vc.language)
  • Re: Unhandled exception - How to turn off!
    ... I don't use exception handling and things like failed memory allocations ... failures are expected and handled internally. ... VS2005 ide setting for C++ Exception Handling to No yet when newfails ...
    (microsoft.public.vc.language)