From: David Ching on
"Joseph M. Newcomer" <newcomer(a)flounder.com> wrote in message
news:pknbo55nu0108i6gqolqdq1empjoc4dfhp(a)4ax.com...
> 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
exception.

-- 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.
>
> .
>