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

Questions about MultiCharts .NET and user contributed studies.
radekj
Posts: 113
Joined: 28 Apr 2008
Has thanked: 20 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: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 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.


Return to “MultiCharts .NET”