Any application shutdown hooks?

Matthew Ong ongbp at yahoo.com
Wed May 25 09:03:29 PDT 2011


On 5/25/2011 11:52 PM, Steven Schveighoffer wrote:
>
> If you want a static dtor that runs on every thread shutdown, use a
> normal static dtor. If you want one that runs on the entire application
> shutdown, use a shared static dtor.
>
> -Steve
Module Destructor: Cool feature that I can consider to use for other 
purpose.

 >If you want one that runs on the entire application shutdown, use a 
 >shared static dtor.
It is more like an entire application shutdown event. So I will be 
placing that at the same module dtor and file as the main(string[] args)
using template mixin.

That might work. I will test that out.

-- 
Matthew Ong
email: ongbp at yahoo.com



More information about the Digitalmars-d-learn mailing list