On Wed, 23 Nov 2016, Ignacio Diaz-Emparanza wrote:
> The program below works perfectly in Ubuntu Linux (Spanish with local
> decimals), but it makes gretl crash on Windows. (Windows 7 in Spanish and
> gretl from current snapshot with local decimals).
>
> The line which causes the problem seems to be "set force decpoint on". It is
> surprising that this line is needed in Linux, but it makes the crash in
> Windows and if you remove it, the program is succesful.
>
> <hansl>
>
> function void BCTplot(series Sciclo)
> string sname = argname(Sciclo)
> diff Sciclo
> set force_decpoint on
> string smY = sprintf("%g",max(abs(Sciclo))+0.2)
> string smX = sprintf("%g",max(abs(d_Sciclo))+0.2)
> list lplot = Sciclo d_Sciclo
> BCT(a)sname <- plot lplot
> options with-lines fit=none
> literal set arrow from 0,-(a)smY to 0,@smY nohead lt 0
> literal set xrange [-(a)smX:@smX]
> literal set yrange [-(a)smY:@smY]
> end plot
> end function
>
> open data3-6.gdt
>
> genr time
> # modelo 1
> ols Ct 0 time
>
> series uhats = ($uhat-mean($uhat))/sd($uhat)
> BCTplot(uhats)
> </hansl>
I tried running this with the current 64-bit snapshot on Windows 8, in
Spanish and with decimal comma selected under Preferences: no crash,
the plot is displayed correctly. I then uninstalled the 64-bit version
and tried the 32-bit build. Same result. So at this point I have no
idea what might be happening in your case.
Could you try running gretl with the --debug flag and see if anything
relevant appears on stderr? Thanks.
Allin