Try the latest cygwin snapshot. Older cygwin's, including the current release, call destructors in .dll's twice on exit. Rob -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/