Hello Steve,

Yes that was the problem! I did not realise that by declaring the spectrum variable as a pointer to a Spectra struct,

Spectra *spectrum;
MakeSpectra (Spectum, x, y, count);


the run-time does not actually allocate any memory. You have to do this,

Spectra spectrum;
MakeSpectra (&Spectrum, x, y, count);

Thanks for pointing that our.

Regards,

Dan.







_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to