
AMDG Stephan Menzel wrote:
return static_cast
(vtable)->invoker (this->functor BOOST_FUNCTION_COMMA BOOST_FUNCTION_ARGS); } #endif 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 race involved has a very small critical section. In Christ, Steven Watanabe