Boost Users :
Subject: Re: [Boost-users] Trouble with asio using lib pion and boost.function
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-11-26 18:48:06
Stephan Menzel wrote:
>>> return static_cast<vtable_type*>(vtable)->invoker
>>> (this->functor BOOST_FUNCTION_COMMA BOOST_FUNCTION_ARGS);
>>> It says the static_cast rises the exception (?!) Damn MS.
>> a) Is the error on the static_cast or on reading the function pointer?
> Alas, I can't really tell. For the compiler this is one line. But I have to
> assume it's coming out of the functor. At least this is what the debug run
> looked like.
You could look at the disassembly...
However, in the light of the following, it seem more likely that
the "this" pointer is invalid.
>> b) does it happen consistently?
> Yes, every time.
> Apart from this, wouldn't a race condition bound to be a little more hard to
> catch? Usually the buggers tend to be rather unreproducable to the point you
> doubt they exist.
Yeah. That doesn't sound like a race condition, then. The particular
has a very small critical section.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net