[FxCop] error on analysis in 1.35
Index was outside the bounds of the array.
at Microsoft.FxCop.Sdk.Introspection.RuleUtilities.GetInstancePointer(Method caller, Int32 offsetToCall)
at Microsoft.FxCop.Rules.Usage.DoNotCallOverridableMethodsInConstructors.CheckCallees(Method method, Boolean isCallVirt)
at Microsoft.FxCop.Rules.Usage.DoNotCallOverridableMethodsInConstructors.CheckCallees(Method method, Boolean isCallVirt)
at Microsoft.FxCop.Rules.Usage.DoNotCallOverridableMethodsInConstructors.Check(Member member)
at Microsoft.FxCop.Engines.Introspection.AnalysisVisitor.CheckMember(Member member, NodeBase target)
example:
class one
{
one(bool init){ if (init) { init (new List<int>())};
protected void init (List<int> a) { a.add(1);}
public virtual foo() {}
}
class two : one
{
two(bool init){ if (init) { init (new List<int>())};
}
class three : two
{
three(bool init){ if (init) { init (new List<int>())};
void new init(List<int> a) { a.add(3); base.init (a);}
public override foo() {}
}
I know the List is another issue - but it is in the code that produced the error so I thought I should include it in case it is the cause. There is no virtual functions being called anywhere in the constructor chain, though there is one virtual method in the "one" class that is overridden in the "three" class.

