This happens once on a single thread and I can't see how that ever gets into multithreaded issues.

TTBOMK this code is guaranteed to be ran just once on a single thread.

On 03/03/2011 4:52 PM, Dmitry Kryuchkov wrote:
I haven't reproduced problem yet, but it seems like Resolve class uses
thread-unsafety list to track components. Am I right?

Windsor version: 2.5.1.2127
TypedFactoryInterceptor.BuildHandlersMap: methods.Add(method, new
Resolve(kernel, ComponentSelector, trackedComponents.Add));


On Mar 2, 8:45 am, Krzysztof Koźmic<[email protected]>
wrote:
I don't see any obvious reason for that. If you can reproduce the issue
with a failing isolated test I'll have  a look.

cheers,
Krzysztof

On 02/03/2011 3:44 PM, Dmitry Kryuchkov wrote:







Krzysztof, could you comment this issue? Should I update Windsor's
version or post issue to bug tracker?
On Mar 1, 2:12 pm, Dmitry Kryuchkov<[email protected]>    wrote:
Today I've got exception on production server, that has been
disappeared after server's restart.
IQueryFactory instantiates transient objects (have only 1 dependency -
from object with PerWcfOperation()  lifestyle) that are released by
interceptors.
System.IndexOutOfRangeException: Index was outside the bounds of the
array.
     at System.Collections.Generic.List`1.Add(T item)
     at Castle.Facilities.TypedFactory.Resolve.Invoke(IInvocation
invocation) in c:\TeamCity\buildAgent\work\1ab5e0b25b145b19\src
\Castle.Windsor\Facilities\TypedFactory\Resolve.cs:line 54
     at
Castle.Facilities.TypedFactory.TypedFactoryInterceptor.Intercept(IInvocatio n
invocation) in c:\TeamCity\buildAgent\work\1ab5e0b25b145b19\src
\Castle.Windsor\Facilities\TypedFactory
\TypedFactoryInterceptor.cs:line 117
     at Castle.DynamicProxy.AbstractInvocation.Proceed() in c:\TeamCity
\buildAgent\work\f0c43d96621436a8\src\Castle.Core\DynamicProxy
\AbstractInvocation.cs:line 163
     at Castle.Proxies.IQueryFactoryProxy.Create[TQueryContext,TResult]
()
     at
Infrastructure.Common.Services.Queries.BaseQueryService.Dispatch[TContext,T 
Result]
(TContext context)
Windsor version: 2.5.1.2127

--
You received this message because you are subscribed to the Google Groups "Castle 
Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to