Re:Exception Safety, Garbage Collection etc. (a.k.a. Why Doe...
by kirbman89 on Friday May 06, 2011 @03:45PM
(#2522199)
Any variables created in the method are cleaned up when the thread leaves the method. I've never heard of clean up being done after execution leaves a try-catch block. Does anyone know the answer to this?
Although if doCleanup() also does some additional cleanup, like cleaning up some associated resources that aren't scoped to this block then I think you're still screwed. Maybe someone can clarify if I'm wrong.