On Fri, 17 Feb 2012, Emrah Samdan wrote:
I have implemented what you have offered so far and i am very
grateful to
you. But my new problem is, i am getting a model from the arma function
then i call the same function again with other parameters. However, it
gives a segmentation fault in the line where i read the native gretl data
in the second call.
Do you have any idea about the reason of this ? libgretl parts in the
function that i am calling are:
fileName = generateXML(powerResults, predictions, numberOfTuples,
santralName, queryTime); // generates an .gdt file for gretl
prn = gretl_print_new(GRETL_PRINT_STDOUT, NULL);
dset = datainfo_new();
err = gretl_read_native_data(fileName, dset); //it crashes here
Sorry for my exhaustive questions, but i really couldn't find a way out.
It's possible that a malformed .gdt data file might crash
gretl. If you can send me the file as created by your
generateXML() function I'll take a look. In the meantime I'm
attaching a working example of a libgretl program that does
ARMA estimation twice, with different parameters.
Allin Cottrell