From: David Ching on
"Joseph M. Newcomer" <newcomer(a)> wrote in message
> Yep. The program doesn't do anything when run in release mode, except
> that the second
> CloseHandle returns FALSE.

More precisely: Windows itself captures the last chance exception so that
it is not exposed to the user. The debugger was catching the first chance

-- David

From: sm on

"RaG" wrote:

> Hi,
> I converted code from vc6 to vc9, on vc6 environment the below
> statement is working fine
> fprintf (stderr, "Failed FormatMessage - MessageIndex = <%d>.\n", 0);
> but when I run this on vc9(visual studio 2008)
> an exception is thrown,How to handle the exception is the issue.
> The exception condition will occur definitely but handling that is
> what I need.In vc6 same code is working fine.
> Any one please Help it is very urgent to solve the exception.
> .