Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

First-chance exception

1 view
Skip to first unread message

Tomislav Petrovic

unread,
Jan 11, 2001, 4:00:57 AM1/11/01
to
I'm a multithreading newbie....
I get first-chance exception debugging my program....
What action can cause such exception?

Tomy.


Craig Powers

unread,
Jan 11, 2001, 9:43:26 AM1/11/01
to

A programming error. If you have things set up right, it will drop into
your code at the spot that triggers the exception, which may or may not
be where the actual error occurs depending on what type of exception it
is (and "first-chance exception" is NOT descriptive, that could be
anything from an access violation to a division by zero).

Ron Natalie

unread,
Jan 11, 2001, 10:37:29 AM1/11/01
to

Craig Powers wrote:
>
> Tomislav Petrovic wrote:
> >
> > I'm a multithreading newbie....
> > I get first-chance exception debugging my program....
> > What action can cause such exception?
>
> A programming error.

Or not. A first chance exception may just be a page fault, that is,
an access to a piece of your address space not currently resident
in memory. The operating system handles this exception by allocating
some memory, filling it with the appropriate data (generally either
zeroing it out or reading it from disk), and restarting the faulting
instruction.

It's only if the first-chance fails that your program will be delivered
a real system exception.

. olofsson @ep.se Johan Olofsson

unread,
Jan 11, 2001, 10:24:30 AM1/11/01
to
first-chance exceptions are exceptions that are handled either in your code
or in any of the libraries your code depends on.
consider them as informational only, as most of them are normal and
even expected during debug runs.

exceptions arent necessarily evil; lots of code relies on them to
perform their tasks...

_unhandled_ exceptions are another chapter though....

/johan

"Tomislav Petrovic" <tomi...@envox.hr> wrote in message
news:93jsoc$86i3$1...@as121.tel.hr...

jal...@my-deja.com

unread,
Jan 12, 2001, 6:18:12 AM1/12/01
to

> > A programming error.
>
> Or not. A first chance exception may just be a page fault, that is,
> an access to a piece of your address space not currently resident
> in memory. The operating system handles this exception by allocating
> some memory, filling it with the appropriate data (generally either
> zeroing it out or reading it from disk), and restarting the faulting
> instruction.
>

I am getting hundreds of these 'first chance..' trace logs
in my debug window in MVC++, is there a way to turn this off???
Please????
Since it only means a page fault, it is destracting me from
important traces.

Marc Wentink


Sent via Deja.com
http://www.deja.com/

0 new messages