On 2012-09-26 07:37, Sean Kelly wrote: > A shared static dtor? Didn't think of that. When exactly are those run? I'm looking for something corresponding to this Java method: http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Runtime.html#addShutdownHook%28java.lang.Thread%29 -- /Jacob Carlborg