A question in search of a volatile answer.

Some sample code that shows that caching really does sometimes require volatile variables or locks. This example works in debug mode, and release mode under a debugger, but fails when run outside a debugger in release mode. Read More...

Read the complete post at http://www.coversant.net/Coversant/Blogs/tabid/88/EntryID/47/Default.aspx