|
Boost Users : |
From: Stephen Torri (storri_at_[hidden])
Date: 2007-03-22 20:43:12
On Fri, 2007-03-23 at 01:30 +0200, Peter Dimov wrote:
> Stephen Torri wrote:
>
> > I am attempting to hunt down why I am getting a segmentation fault
> > from the boost::shared_ptr class.
>
> You could try #defining BOOST_SP_ENABLE_DEBUG_HOOKS and adding
> libs/smart_ptr/src/sp_debug_hooks.cpp to your project, which is a simple
> checker that tries to catch common problems.
>
> You might also wish to verify that you aren't mixing single-threaded and
> multithreaded code or libraries in the same program.
As far as I know I have a single-threaded library I am creating. I put
the BOOST_SP_ENABLE_DEBUG_HOOKS into the compile time flags for g++. I
added the source file, sp_debug_hooks.cpp, into the build. I take it the
checks are done when the library code is executed?
Stephen
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