Boost logo

Boost Users :

From: Ani Taggu (yg-boost-users_at_[hidden])
Date: 2002-12-15 01:32:04


Hi:

I am using windows 2000 with VC 6.0 and boost 1.28.

In my project, I have an array of pointers to objects:

class foo
{
public:
~foo() {}
private:
std::vector<boost::shared_ptr<MyType> > myArr_;
};

I found that the destructor for MyType is never called. Printing the
shared_ptr::use_count = 6 at ~foo() above.

Any suggestions on what could be happening and how to approach the
debugging?

Thanks,

-Ani


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