Any application shutdown hooks?
Matthew Ong
ongbp at yahoo.com
Thu May 26 02:27:38 PDT 2011
>> On 5/25/11, Steven Schveighoffer<schveiguy at yahoo.com> 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.
>>
>> I saw some commits change a static dtor to a shared static dtor and
>> wondered what was that all about..
> Thanks a lot for the all the comments and instructions shown here.
>
Perhaps writing a mixin at module where the main method is located will
do that exactly.
others may be dll and could be unloaded and cause __dtor to be called.
Will try such direction. Thanks people.
--
Matthew Ong
email: ongbp at yahoo.com
More information about the Digitalmars-d-learn
mailing list