Boost logo

Boost :

From: Ani Taggu (ataggu_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 list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk