Eviews crashing in chart loop

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

BT454
Posts: 135
Joined: Wed Aug 02, 2017 6:07 am

Eviews crashing in chart loop

Postby BT454 » Wed Dec 30, 2020 8:08 am

Hi all!
Thank you in advance for your help.
I run several forecast check procedures that utilize a chart creating loop. Since upgrading to Eviews12 it crashes eviews.
Here is the code, with the loop that creates the charts towards the bottom. I have tried running the similar loop in several prgs that have worked previously. Any thoughts? In general, since upgrading to 12 I've experienced Eviews crashing multiple times a day, when trying to run a variety of different prgs. Perhaps a reinstall is in order?
As always, thank you for your help!
Bob

'regional check routine
!i = @pageexist("reg_check")
if (!i =1) then
pagedelete reg_check
endif
'set up wfpage
pagecreate(page=reg_check) m 2010 2050
wfopen days
copy days::monthly\daysm usl48_stdata::reg_check\daysm
wfclose days
copy history\inval reg_check\inval
copy history\sfy* reg_check\fy*
copy history\fym* reg_check\fym*
copy history\invnag*_1 reg_check\invnag*_1
copy history\demcap* reg_check\demcap*
%fend = @datestr(@dateval(invnagap_1.@last),"dd/mm/yyyy")
%startchart = @datestr(@dateadd(@dateval(inval.@last),-5,"yy"),"dd/mm/yyyy")
%fstart = @datestr(@dateadd(@dateval(inval.@last),1,"mm"),"dd/mm/yyyy")

%regs = "nagne nagap nagmw nagse naggc nagpn nagrm nagmc nagca nagds"
%charts = @wcross("inv",%regs)
%charts = @wcross(%charts,"comp")
for %x {%charts}
!i = @isobject(%x)
if (!i = 1) then
delete %x
endif
next

for %x {%regs}
smpl %startchart %fend
graph inv{%x}comp inv{%x}_1 fyinv{%x} fymninv{%x} fymxinv{%x} demcap{%x}
inv{%x}comp.setupdate(m)
inv{%x}comp.addtext(t) {%x}
inv{%x}comp.setelem(1) lcolor(red) lwidth(0.9)
inv{%x}comp.setelem(1) lcolor(blue) lwidth(0.75)
show inv{%x}comp
next

smpl %fstart %fend

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: Eviews crashing in chart loop

Postby EViews Jason » Wed Dec 30, 2020 9:47 am

It will be fixed in the next patch.

BT454
Posts: 135
Joined: Wed Aug 02, 2017 6:07 am

Re: Eviews crashing in chart loop

Postby BT454 » Wed Dec 30, 2020 9:56 am

Thank you very much! Have a happy new year!

BT454
Posts: 135
Joined: Wed Aug 02, 2017 6:07 am

Re: Eviews crashing in chart loop

Postby BT454 » Sat Jan 09, 2021 9:10 am

This is fixed. Thank you so much!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 22 guests