digitalmars.D.learn - Catching AVs on Windows
- Robert Fraser (7/7) Apr 13 2008 Hi,
- Jarrett Billingsley (4/11) Apr 13 2008 They already are, IIRC. They might not be converted to Exceptions, thou...
- Robert Fraser (3/17) Apr 13 2008 Oh you're right! Thanks! Any way to make it throw an Exception (since
- Robert Fraser (3/21) Apr 13 2008 Oops, never mind, it _is_ an exception. Now to figure out why it won't
Hi, Has anyone had any success trapping access violations on Windows and changing them into D exceptions? I created a function and passed it to SetUnhandledExceptionFilter, but my exception filter never triggered on the access violation. Thanks, Robert
Apr 13 2008
"Robert Fraser" <fraserofthenight gmail.com> wrote in message news:fttsdl$2nec$1 digitalmars.com...Hi, Has anyone had any success trapping access violations on Windows and changing them into D exceptions? I created a function and passed it to SetUnhandledExceptionFilter, but my exception filter never triggered on the access violation. Thanks, RobertThey already are, IIRC. They might not be converted to Exceptions, though, but I know you can catch them with catch(Object).
Apr 13 2008
Jarrett Billingsley wrote:"Robert Fraser" <fraserofthenight gmail.com> wrote in message news:fttsdl$2nec$1 digitalmars.com...Oh you're right! Thanks! Any way to make it throw an Exception (since I'm adding trace hooks to the Exception constructor)?Hi, Has anyone had any success trapping access violations on Windows and changing them into D exceptions? I created a function and passed it to SetUnhandledExceptionFilter, but my exception filter never triggered on the access violation. Thanks, RobertThey already are, IIRC. They might not be converted to Exceptions, though, but I know you can catch them with catch(Object).
Apr 13 2008
Robert Fraser wrote:Jarrett Billingsley wrote:Oops, never mind, it _is_ an exception. Now to figure out why it won't trace..."Robert Fraser" <fraserofthenight gmail.com> wrote in message news:fttsdl$2nec$1 digitalmars.com...Oh you're right! Thanks! Any way to make it throw an Exception (since I'm adding trace hooks to the Exception constructor)?Hi, Has anyone had any success trapping access violations on Windows and changing them into D exceptions? I created a function and passed it to SetUnhandledExceptionFilter, but my exception filter never triggered on the access violation. Thanks, RobertThey already are, IIRC. They might not be converted to Exceptions, though, but I know you can catch them with catch(Object).
Apr 13 2008