Subject: Re: [boost] [BOOST_ASSERT] any one against improving debug support?
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-06-20 15:23:10
Thorsten Ottosen <thorsten.ottosen <at> dezide.com> writes:
> Gennadiy Rozental skrev:
> > Thorsten Ottosen <thorsten.ottosen <at> dezide.com> writes:
> >>> 1. You can use environment variable to enforce desirable behavior
> >>> all the time without your involvement.
> >> I have defined BOOST_TEST_CATCH_SYSTEM_ERRORS to no, but no luck getting
> >> it to work.
> > I found and fixed bug in execution monitor, which did not restore C Runtime
> > report hook. Checked into trunk.
> This made a difference. Thanks. I do get this warning when compiling:
> d:\boost\trunk\boost\test\impl\execution_monitor.ipp(1124) : warning
> C4701: potentially uninitialized local variable 'old_crt_hook' used
Thanks. I default constructed it.
> I'm still not able to auto start the debugger, though.
Unfortunately, it appears, you can't use it with msvc asserts. They look
internally like c++ exceptions and code never reaches appropriate if, even if
you tell it to catch system errors.
But you can try it with any other type of failure.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk