Any application shutdown hooks?

Matthew Ong ongbp at yahoo.com
Wed May 25 01:29:24 PDT 2011


Hi,

If I am writing a database library such as DSL, Data Service Layer, 
there is a need for me to do a good clean up for the connections/results 
sets/transactions that this library is currently handling.

How ever, if another library/package somewhere else calls for a


java.lang.Runtime#public void addShutdownHook(Thread hook)


How do code or what library to use?

can someone please provide a simple working D example for try out.

Of cause, in Even in Java there is event if some cleaning lady were to 
accidentally unplug the main socket of your server. :)


-- 
Matthew Ong
email: ongbp at yahoo.com



More information about the Digitalmars-d-learn mailing list