Eviews crashes in subroutine

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

nupogodi
Posts: 53
Joined: Thu Jun 03, 2010 12:50 am

Eviews crashes in subroutine

Postby nupogodi » Sat Mar 21, 2015 5:12 am

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


EViews Glenn
EViews Developer
Posts: 2590
Joined: Wed Oct 15, 2008 9:17 am

Re: Eviews crashes in subroutine

Postby EViews Glenn » Sun Mar 22, 2015 6:59 pm

Thanks for the report. What version are you running? And what's the build-date?

nupogodi
Posts: 53
Joined: Thu Jun 03, 2010 12:50 am

Re: Eviews crashes in subroutine

Postby nupogodi » Mon Mar 23, 2015 12:32 am

v8.1 March 11 2015 build , Win 32 bit

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 11774
Joined: Tue Sep 16, 2008 5:38 pm

Re: Eviews crashes in subroutine

Postby EViews Gareth » Mon Mar 23, 2015 8:12 am

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.
Follow us on Twitter @IHSEViews

nupogodi
Posts: 53
Joined: Thu Jun 03, 2010 12:50 am

Re: Eviews crashes in subroutine

Postby nupogodi » Mon Mar 23, 2015 8:52 am

For me the program crashes every time on two different computers. Also after rebooting.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 11774
Joined: Tue Sep 16, 2008 5:38 pm

Re: Eviews crashes in subroutine

Postby EViews Gareth » Mon Mar 23, 2015 9:17 am

So you literally have those two .prg files. You open up EViews, open up first_program, click the Run button and then EViews crashes?
Follow us on Twitter @IHSEViews

nupogodi
Posts: 53
Joined: Thu Jun 03, 2010 12:50 am

Re: Eviews crashes in subroutine

Postby nupogodi » Mon Mar 23, 2015 9:23 am

In order to replicate the error set default options:

1. Quiet (fast) no screen update
2. Maximum errors before halting 9999999
Attachments
picteviews.png
picteviews.png (27.18 KiB) Viewed 1832 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 11774
Joined: Tue Sep 16, 2008 5:38 pm

Re: Eviews crashes in subroutine

Postby EViews Gareth » Mon Mar 23, 2015 9:47 am

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.
Follow us on Twitter @IHSEViews

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 11774
Joined: Tue Sep 16, 2008 5:38 pm

Re: Eviews crashes in subroutine

Postby EViews Gareth » Mon Mar 23, 2015 10:00 am

It will be fixed in the next patch.
Follow us on Twitter @IHSEViews

nilslh
Posts: 8
Joined: Fri Sep 08, 2017 2:38 am

Re: Eviews crashes in subroutine

Postby nilslh » Thu May 03, 2018 2:17 am

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


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests