I am getting the "object reference not set to an instance of an object" error message when calling a Misc. Method from OnBarUpdate(). The method is quite simple, just loading an array with values, please see below.
I have a line in OnBarUpdate() that says GenerateArray(); that's all
Could you please give me a hint on where the issue might be?
#region Methods
private void GenerateArray()
{
//int [] array; //this one is already declared above in the variables region
for(i=0;i<100;i++)
{
array[i]=j+multiplier;
j=j+multiplier;
//Print(array[i].ToString());
}
}
#endregion
Comment