title: Fannj: Invalid memory access
body: <p>Hi can somebody help me with the error, I used Fannj for create Neural Network.
  Fannj is Java bindings to FANN (the Fast Artificial Neural Network C library.)</p>
  
  <p>My code:</p>
  
  <pre><code>Layer l1 = new Layer();
  l1.create(1, ActivationFunction.FANN_SIGMOID_SYMMETRIC);
  Layer l2 = new Layer();
  l2.create(1, ActivationFunction.FANN_SIGMOID_SYMMETRIC);
  Layer l3 = new Layer();
  l3.create(1, ActivationFunction.FANN_SIGMOID_SYMMETRIC);
  List&lt;Layer&gt; list = new ArrayList&lt;Layer&gt;();
  list.add(l1);
  list.add(l2);
  list.add(l3);
  Fann fannT = new Fann( list);
  </code></pre>
  
  <p>And Error:</p>
  
  <pre><code>Exception in thread "main" java.lang.Error: Invalid memory access
  at com.googlecode.fannj.Fann.fann_create_standard_array(Native Method)
  at com.googlecode.fannj.Fann.&lt;init&gt;(Fann.java:92)
  at m.nieco.suns.zadanie01.Main.main(Main.java:34)
  </code></pre>
  
  <p>I used <a href="https://github.com/krenfro/fannj" rel="nofollow">https://github.com/krenfro/fannj</a></p>