Recursive Destructors?

2006-02-15 Thread Perry Smith
I am assuming I am doing something wrong but I am hoping someone can give me a clue as to where to look. I'm trying to write an AIX device driver using g++. The drivers do not have a __start or main, so I have to call the global constructors and destructors myself. I've written code attempting

RE: Recursive Destructors?

2006-02-15 Thread Dave Korn
On 15 February 2006 15:27, Perry Smith wrote: > I am assuming I am doing something wrong but I am hoping someone can > give me a clue as to where to look. > > I'm trying to write an AIX device driver using g++. ^^^ Clue: Look here! ;-) > The

Re: Recursive Destructors?

2006-02-15 Thread Mike Stump
On Feb 15, 2006, at 7:27 AM, Perry Smith wrote: I am assuming I am doing something wrong but I am hoping someone can give me a clue as to where to look. I'd fire up a debugger and type up a couple of times from a breakpoint in the dtor. If you want to randomly try things, if you inserted c

Re: Recursive Destructors?

2006-02-15 Thread Perry Smith
Thanks guys. I was misusing a shared_ptr. I had two shared_ptr's pointing to the same object (that didn't know about each other). I apologize if this was more appropriate for gcc-help. Some of the details of how dtors get called is still magic to me and I thought it may be gcc specific.