Jagged Array Null Reference Exception Programming Software Development by kendaop …? Thanks for your help. // This line produces the error NeuralNet net = new NeuralNet(CreateWeightsArray(NETWORK_INPUTS.Length), CreateFunctionsArray()); private Function[][] CreateFunctionsArray() // Functions are… Re: Jagged Array Null Reference Exception Programming Software Development by kendaop ….2, 6.1, 2.1, 1 }; //// From Kendaop.AI.ANN.NeuralNet \\\\ public NeuralNet(double[][][] inputWeights, Function[][] functions) { CopyWeightsArray(ref inputWeights, ref weights… Re: Jagged Array Null Reference Exception Programming Software Development by kendaop …60; static Function DEFAULT_FUNCTION = Function.Linear; NeuralNet net; Vector2[][] nodeLocations; Drawing drawing; … rand = new Random(); net = new NeuralNet(CreateWeightsArray(NETWORK_INPUTS.Length), CreateFunctionsArray()); drawing = new … Re: Jagged Array Null Reference Exception Programming Software Development by Momerath Can you post the constructor that is being called (NeuralNet(double[][][], Function[][]))? I'd also like to see what NEURONS_PER_LAYER is defined as and the values it contains, along with numInputs Re: Reading image as binary file Programming Software Development by Bart6114 Thank a lot Vegaseat! This is exactly what I needed. I know I can't recover any data back. But I'm gonna use it to feed it through a neural net. Seeing the output I think it's not very effective analysing image data (I'm now using PIL for that). But I think it can be very useful while analysing textinput with a neuralnet! Thanks again! Re: Jagged Array Null Reference Exception Programming Software Development by Momerath Still missing parts of your code :) Is there any way you can post the whole class, or upload it somewhere?