11 Jan
2007
11 Jan
'07
9:04 p.m.
Hi,
I have a strange problem. The destructor of a class calls join_all(). But it seems that he hangs there. Even though some other code behind
join_all() is executed before it finishs! Lets get concret:
seal::~seal() { ThgPrgs.join_all(); cout<<"Crabd quits, goodbye"<
Could you possibly post a small (complete) example
Manuel Jung wrote: the that demonstrates the
behaviour? I am not able to guess where to problem might be from looking at the destructor only.
Are you expecting the destructor to be called once? Probably what is happening is your default constructor is being called more than once (during a copy operation) and you are unaware of it. So your destructor gets called more than once. Robert Marion