c# - System.AccessViolationException with Dynamic Proxy Generation -


We are using PostSharp to inject the caching functionality, we only see it when we use it When we use spring, this issue goes away.

Any help would be appreciated, it is very difficult to repeat the issue. I have included the following stack marks:

 Tried to read or write secure memory. It is often an indication that other memory is corrupt. System.AccessViolationException: Attempted to read or write protected memory is often a sign that other memory is corrupt. On the system Diagnostics. Symboolstore.Smounter. On the Causage System. Reflection.imit.mathbuilder On the CremaTemouthBodieHelper (ILAgenerator IL) system. Reflections.imit.TepperBiilder.CreateType (on the system). Reflection.imit TypeBullder.CattyType (Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter.BuildType () in Castle.DynamicProxy.Generates.ClassProxyGenerator.GenerateCode (type [] interface, ProxyGenerationOptions option on Castle.DynamicProxy.DefaultProxyBuilder.CreateClassProxy (type class, type [ ] Type targetType, Type [] Interface, ProxyGenerator options, Object [] ConstructorAge, IInterceptor [] Interceptor) Castle.DynamicProxy.ProxyGenerator.CreateClassProxy (type targetType, type, interface, proxy generation option option) on Castle.DynamicProxy.ProxyGenerator.CreateClassProxy [] Interface, NHibernate.Proxy.Poco.Cas IInterceptor [] Interceptor on tle.CastleProxyFactory.GetProxy (Object ID, Eesation Supplement Session) 

I It has seen a similar recurring problem with the project, which makes heavy use of Rhino Mox.

This happens in NET 3.5 on 64-bit machines while joking a large number of different interfaces.

This problem does not occur in .NET 4.0 Beta.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -