No. As foo does not return any object but returns abruptly, there is nothing
to put a lock on! On which object would you expect the lock to be placed?
Bruno
"Daniel" <so*******************@yahoo.com> a écrit dans le message de news:
%2****************@TK2MSFTNGP14.phx.gbl...
exception inside lock before lock body
lock(foo()){bar();} what will happen if foo() throws an exception? will
there be a lock on the exception?