Page 1 of 1

EViews crashes...

Posted: Fri Jul 20, 2018 12:30 pm
by tvonbrasch
Hi

Try to run the attached program file twice and EViews crashes, for some reason....

Thomas

Re: EViews crashes...

Posted: Mon Jul 23, 2018 7:49 am
by EViews Steve
Thanks for the program. I was able to get EViews 10 to crash on just the first run. While we try to fix this problem, I believe you can avoid this crash by changing a global setting to allow multiple untitled workfiles. Go to Options/General Options/Environment/Window behavior, then in the "Allow only one untitled" group box, uncheck the "Workfiles" checkbox. Once changed, try running your program again to see if EViews is more stable.

Re: EViews crashes...

Posted: Mon Jul 23, 2018 8:07 am
by EViews Steve
Further, this bug is happening because EViews (by default) does not allow multiple un-named workfiles to be open at a time and tries to delete any previous untitled workfile whenever a new one is created -- and EViews is not cleaning up properly (during a program run) when doing this. So when your program runs and creates the first untitled workfile with this command:

Code: Select all

wfcreate a 1910 2020

but then downloads a new program which runs the exact same line, EViews is closing the first workfile window that was first created. So even if we fix the cleanup issue so that EViews doesn't crash, you may be missing the first workfile window after your program is complete.

To get around this problem, I would suggest you name your workfiles by specifying the wfname option in the wfcreate command, like this:

Code: Select all

wfcreate(wfname=first) a 1950 2020

or if you know you will have a workfile window already, change the program that is downloaded to create a new page instead:

Code: Select all

pagecreate a 1950 2020

to avoid the multiple untitled workfiles issue.

Re: EViews crashes...

Posted: Mon Jul 23, 2018 9:04 am
by EViews Steve
Ok this particular problem has been fixed and will be released in the next EViews 10 patch.

Re: EViews crashes...

Posted: Mon Jul 23, 2018 12:47 pm
by tvonbrasch
Hi Steve

Thanks for excellent suggestions, and thanks for fixing the problem!
Thomas