On Tue, 20 Mar 2018 09:08:14 -0300 helioroots roots <heliosroots at gmail.com> wrote: > AfterConstruction and BeforeDestruction does not work? They do. But I just see that the optimizer has a bug and omits them. When you compile with -O- it works. Please create a bug report. Mattias