I was given this code snippet by a colleague (compiled with MSVC6). The problem is that the second reset() delete the MyClass instance. However when on_thread_exit() is called, a second attempt to delete the instance is made. I was given a diff for the fix, but I would like to know if someone has come across this as well.

-- Forwarded message

Schalk,

The following code demonstrates a bug in the thread module of Boost under MSVC when using thread specific storage: