Hi,
[Spring.NET 1.0.1]
I use GetObject on IApplicationContext.GetObject to get a lazy-init singleton object from different threads. It seems that the method is not thread-safe. If I kick off two threads at the same time and get the object that takes time to initialize, one thread will get the object correctly while the other thread will get null back.
I think this is a very important issue that has to be fixed since whether I configure the object to be singleton or not, it should not affect the code path directly.
To workaround this problem, I need to put synchronize block around GetObject manually and I don't think it's a good idea. Is it possible to get it fixed in 1.0.2?
http://opensource.atlassian.com/proj...wse/SPRNET-170


Reply With Quote
