Hi, On 06/05/18 22:42, Fabian Maurer wrote: > Code taken from onexit logic and adapted- Why don't you just call onexit functions instead of reimplementing it? Note that you don't need to call MSVCRT__initialize_onexit_table when quick_exit table is declared static. Thanks, Piotr