Boost logo

Boost :

From: Steven Watanabe (steven_at_[hidden])
Date: 2007-11-12 10:51:41


AMDG

Ormond, Randy <Randy.Ormond <at> mdnt.com> writes:

>
> Steven,
>
> Thanks for the suggestions.
>
> >I don't see any recursion either. Does the simple example segfault?
> >Can you post a *complete* program?
>
> I wish I could.
>
> >Do these two variations segfault?
> >this->MyClass::f();
> >boost::bind(&MyClass::f, this)()
>
> Both of those are fine.
>
> There's a clue here that would help me if I were smart enough. The
> segfault goes away if I change the order of linking the object files.
> Maybe a duplicate symbol but I haven't found it yet.
>
> Thanks,
> Randy

It sound to me like an order of initialization problem.
What version of boost are you using? Can you try
stepping through the initializtion of the boost::function<...>
and watching the value especially of the vtable?

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk