NullReferenceException by new VariableSeries<Double>(this)  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
radekj
Posts: 99
Joined: 28 Apr 2008
Has thanked: 18 times
Been thanked: 1 time

NullReferenceException by new VariableSeries<Double>(this)

Postby radekj » 25 Aug 2012

NullReferenceException by

protected override void StartCalc()
{
this.foo = new VariableSeries<Double>(this);
}

this works:

protected override void Create()
{
this.foo = new VariableSeries<Double>(this);
}

Error text snap:
http://screencast.com/t/zPeyxEB7

ciao
radekj


ps:
indicator implements: IChartCustomDrawer

User avatar
Henry MultiСharts
Posts: 8503
Joined: 25 Aug 2011
Has thanked: 1213 times
Been thanked: 2731 times

Re: NullReferenceException by new VariableSeries<Double>(thi  [SOLVED]

Postby Henry MultiСharts » 27 Aug 2012

Hello Radekj,

New variables should be introduced only through "Create" method.
These users thanked the author Henry MultiСharts for the post:
radekj


Return to “MultiCharts .NET”