Re: Exceptions and MFC
From: Nils (slim_at_web.de)
Date: 03/05/04
- Next message: Caprice: "Accelerator keys don't work..."
- Previous message: Balboos: "Scaling vs Font setting"
- In reply to: Stephen Howe: "Re: Exceptions and MFC"
- Next in thread: Doug Harrison [MVP]: "Re: Exceptions and MFC"
- Reply: Doug Harrison [MVP]: "Re: Exceptions and MFC"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 5 Mar 2004 16:23:05 +0100
Hi,
the vector is not empty. At the position 0 is a pointer to an
ModalDialog.... So I wan't to Exit the dialog..
I think the exception comes, while the dialog is not finished created.
I have derived an own dialog, that uses synchonization.
At this time, the dialog ist locked.
The Exception has the ID 0xc00000005... so it is an Access Exception.
But I can't catch it.
"Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom> schrieb im Newsbeitrag
news:el52NZrAEHA.2308@tk2msftngp13.phx.gbl...
> > Can anyone please help me, why the exception is not catched?
>
> Is it possible for your vector to empty? If it is,
>
> vec->at(0))
>
> with throw a std C++ exception. That is what at() rmeans :- throw an
> exception if the index is out of range and it will be if the vector is
> empty.
>
> Why not do
>
> assert(!vec->empty());
>
> before this and run the debug version.
>
> Stephen Howe
>
>
- Next message: Caprice: "Accelerator keys don't work..."
- Previous message: Balboos: "Scaling vs Font setting"
- In reply to: Stephen Howe: "Re: Exceptions and MFC"
- Next in thread: Doug Harrison [MVP]: "Re: Exceptions and MFC"
- Reply: Doug Harrison [MVP]: "Re: Exceptions and MFC"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|