Page 1 of 1
Eviews crashes in subroutine
Posted: Sat Mar 21, 2015 5:12 am
by nupogodi
Eviews shuts down when calling non-existent subroutine.
In addition, the program just ignores calls to subroutines when the name of subroutine is long.
first_program_file.prg
Code: Select all
include second_program_file
call sub_exists
second_program_file.prg:
Code: Select all
subroutine sub_exists
call sub_doesnt_exist '<-- Calling non-existent subroutine
endsub
Re: Eviews crashes in subroutine
Posted: Sun Mar 22, 2015 6:59 pm
by EViews Glenn
Thanks for the report. What version are you running? And what's the build-date?
Re: Eviews crashes in subroutine
Posted: Mon Mar 23, 2015 12:32 am
by nupogodi
v8.1 March 11 2015 build , Win 32 bit
Re: Eviews crashes in subroutine
Posted: Mon Mar 23, 2015 8:12 am
by EViews Gareth
Completely unable to replicate this.
I created the first_proram_file and second_program_file programs, then run the first one, and it just gives the error message of the subroutine not existing. No crash.
Re: Eviews crashes in subroutine
Posted: Mon Mar 23, 2015 8:52 am
by nupogodi
For me the program crashes every time on two different computers. Also after rebooting.
Re: Eviews crashes in subroutine
Posted: Mon Mar 23, 2015 9:17 am
by EViews Gareth
So you literally have those two .prg files. You open up EViews, open up first_program, click the Run button and then EViews crashes?
Re: Eviews crashes in subroutine
Posted: Mon Mar 23, 2015 9:23 am
by nupogodi
In order to replicate the error set default options:
1. Quiet (fast) no screen update
2. Maximum errors before halting 9999999
Re: Eviews crashes in subroutine
Posted: Mon Mar 23, 2015 9:47 am
by EViews Gareth
Ha, the maximum error count is what did it. We'll investigate. In the meantime, setting errors to 1 will cause it to not crash.
Re: Eviews crashes in subroutine
Posted: Mon Mar 23, 2015 10:00 am
by EViews Gareth
It will be fixed in the next patch.
Re: Eviews crashes in subroutine
Posted: Thu May 03, 2018 2:17 am
by nilslh
Hi,
I have a related problem using EViews 10+. When calling a subroutine within a subroutine, EViews occasionally crashes. The problem seems to be related to the number of maximum allowable errors. When setting the number manually to 100 (in EViews, via General Options) and in the subroutine to 1 (SetMaxErrs 1) I get a message that the number of maximum allowable errors has been exceeded. Then I remove the code snippet (SetMaxErrs 1) and run the program again and everything works well. Then I close EViews and run the program again, with the same options and without changing anything, and EViews crashes.
I am using Windows 10 and from the Event Viewer I got the information that the error arose from module "evCommon.dll". Not sure if that information is helpful.
Regards,
Nils