begin quoting Andrew Lentvorski as of Mon, Jan 14, 2008 at 07:36:16PM -0800: [snip] > Unfortunately, constructors and destructors are excruciatingly difficult > to get right in the presence of exceptions. The fact that that you have > to pull out about 3 different books to get this right says that > something is broken.
You speak wisdom. An exception in a destructor was one of the most annoying bugs I ever had to track down in C++ -- everything was kosher and groovy at the return, but the function never returned. Didn't take long to narrow down the problem to the particular return. I eventually found it by single-stepping the debugger, after loading all of the support library code source I could lay my hands on into the project's environment. -- Oh, did the week's schedule get screwed that day! I had 0.5 hours for debugging, or so they say. Stewart Stremler -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
