The first time was in calling a function that was supposed to return an integer. I solved that problem by removing the localobj variables that I was using and setting them global, outside the function body.
However, afterwards, the same error occured in this block of code:
Code: Select all
for c1=0,ncells-1 {
for c2=0,ncells-1 {
print synapses[c1][c2]
}
}
where the "synapses" is supposed to be a 2-D array of integers. This block is not in a function or proc, simply in a hoc.
Here is the error:
What is the meaning of the "segmentation fault" and how can I resolve these issues?nrniv: Segmentation violation
in C:/nrn59/my_models/net.hoc near line 307
}
Thanks a lot