Re: still confused


[ Follow Ups ] [ Post Followup ] [ CS328 Message Board ] [ FAQ ]

Posted by Aaron on July 15, 2001 at 23:57:13:

In Reply to: Re: still confused posted by Natalie on July 15, 2001 at 23:45:43:

: I see what you are saying, but my code is dying in his foo class when a method tries to throw one of these specialized types of exceptions. So, I'm not even getting to my catch block (as far as I can tell). The pointers he has defined in the foo class to these specialized classes must be crap (since the classes are not defined anywhere - that I can see). Thanks for discussing with me.

: Natalie

If it's aborting(seg faulting) on the throw, I had that problem not too long ago and it ended up being a had a pointer getting mashed in the funciton, then when the throw was called, it called the destructor of the classes in the scope, which also had some bad code and caused the crash.... it looked like it was the throw crashing, but the culprit was the code leading up to the throw.. also, you may wanna check out the baz.h again, as to the fact that they are pretty well defined in there now.... for me the weird thing was the fact that the code would run on solaris, but not linux, so you may wanna try on the solaris machines and see if you have any better luck.

aaron


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS328 Message Board ] [ FAQ ]