I'm looking at the IL of a function similar to this and it looks like when an exception occurs the lock is not released.
Is this correct?
Can anybody elaborate?
P.S. I know there are other ways of doing this but I want to know why the lock is not being released. (or at least doesn't seem to be being released)