> Regarding your case... not sure but I think you earlier had a, probably,
> local variable or a instance-field that got garbage-collected somewhere down
> the line and hence, Semaphore being abandoned.
> Releasing the mutex woudl work find as it would use that static
> reference, but the other process still threw the exception. Oh well,
> it works now, that's all I care about.
Hmm... all's well that ends well.
Probably, I'll put this "interesting" study in my blog.
Let me also try to reproduce it here... :)

Signature
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujinionline.com
http://eduzine.edujinionline.com
-----------------------------------------
Andy - 13 Oct 2006 17:47 GMT
Well to accurately repo this, you'll have to create a pair of Nant
tasks.. one to get the Mutex and one to release it. The idea is that
in your build file you get the lock, do some stuff, then release the
lock.
The AbandonedMutexException would show up just opening a couple of
console windows and running the same test build (which had a sleep
between getting and releasing the lock).
HTH
Andy
> > Releasing the mutex woudl work find as it would use that static
> > reference, but the other process still threw the exception. Oh well,
[quoted text clipped - 11 lines]
> http://eduzine.edujinionline.com
> -----------------------------------------
Andy - 13 Oct 2006 17:47 GMT
Well to accurately repo this, you'll have to create a pair of Nant
tasks.. one to get the Mutex and one to release it. The idea is that
in your build file you get the lock, do some stuff, then release the
lock. Oh, the tasks also took a lockName which was used to globally
name the mutex.
The AbandonedMutexException would show up just opening a couple of
console windows and running the same test build (which had a sleep
between getting and releasing the lock).
HTH
Andy
> > Releasing the mutex woudl work find as it would use that static
> > reference, but the other process still threw the exception. Oh well,
[quoted text clipped - 11 lines]
> http://eduzine.edujinionline.com
> -----------------------------------------
Gaurav Vaish (www.EdujiniOnline.com) - 14 Oct 2006 19:48 GMT
> Well to accurately repo this, you'll have to create a pair of Nant
> tasks.. one to get the Mutex and one to release it. The idea is that
Hi Andy,
Thanks for the input.

Signature
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujinionline.com
http://eduzine.edujinionline.com
-----------------------------------------