OT: 3.5SP1 now gives AccessViolationExceptions when using reflection?

OT: 3.5SP1 now gives AccessViolationExceptions when using reflection?

Old forum URL: forums.lhotka.net/forums/t/5239.aspx


ajj3085 posted on Wednesday, August 13, 2008

Hi,

I'm coding some new BOs, and I've hit a problem when using one of my pre-existing libraries.  The only changes is that I've installed SP1 for .Net 3.5 and VS 2008.

My older DAL that I build uses a lot of reflection to get things done.  I'm not getting a lot of AccessViolationExceptions running tests under NUnit.  The stack trace starts off like this:
at (Object , Object[] )
at MyCompany.Data.EntityReflector.GetProvider(Type entType)
at MyCompany.Data.EntityReflector.GetProvider(DataEntity ent)
at MyCompany.Data.DataSearcher`1.Find()

It happens quite a bit... but sometimes tests sneek by without causing the exception.  When stepping through code via the debugger, things work just fine.

I haven't read anything that should cause reflection to fail due to the upgrade... is this something to do with the fact that I'm on a dual-core workstation as well? 

Anyone else encounting these issues?

Copyright (c) Marimer LLC