Bug when "copy" from a closed workfile

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

johansamuelsson
Posts: 160
Joined: Thu Mar 03, 2011 10:07 pm
Contact:

Bug when "copy" from a closed workfile

Postby johansamuelsson » Fri Jan 27, 2023 9:24 am

In many of our calculationsystems we copy data by reading directly from a closed workfile, for example

Series x = C:\Temp\Test.Wf1::A\y

In the latest version, Eviews seems to open the workfile when this command is used.

Some systems are huge and Eviews gives an error message when Eivews has opened 30 workfiles. The error message is also a bit wrong.

The following code works in Eviews12 and in Eviews13 Dec 28 2022 build, but not in Eviews13 Jan 19 2023 build

Code: Select all

Shell If Not exist C:\Temp Md C:\Temp
For !i = 1 To 40
   WfCreate(page=A) a 2000 2020
   Series a{!i} = @rnd
   WfSave C:\Temp\Test{!i}
   Close @All
Next

WfCreate(page=A) a 2000 2020
For !i = 1 To 40
   Series b{!i} = C:\Temp\Test{!i}.Wf1::A\a{!i}
Next

EViews Steve
EViews Developer
Posts: 788
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Bug when "copy" from a closed workfile

Postby EViews Steve » Mon Jan 30, 2023 12:27 pm

Thanks for the bug report.

This will be fixed in the next patch.

dman
Posts: 24
Joined: Mon Jul 18, 2016 10:50 am

Re: Bug when "copy" from a closed workfile

Postby dman » Mon Feb 06, 2023 2:53 pm

A possibly related bit of info.
We are also having our code fail in Eviews 13 (Jan19 build), where it's solid in Eviews 12.

This code bit runs fine in Eviews 12.

Code: Select all

wfuse %filepath1
wfopen %filepath2
copy(o) %filepath2::* %filepath1::

Where %filepathX is a full path like "C:\work\fileX.wf1"

In Eviews 13 it would run, but result in everything getting closed, and the next meaningful Eviews action shuts down the application. If the next action happens in the code, Eviews quits as well.

The following tweak appears to work though

Code: Select all

copy(o) %filestring2::* %file1::

Where %file1 is "file1"

dman
Posts: 24
Joined: Mon Jul 18, 2016 10:50 am

Re: Bug when "copy" from a closed workfile

Postby dman » Tue Feb 28, 2023 10:55 am

Updated to the most recent release of Eview13, and the issue is still there.
Any help?

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

Re: Bug when "copy" from a closed workfile

Postby EViews Gareth » Tue Feb 28, 2023 11:05 am

Which issue (or both?)
Follow us on Twitter @IHSEViews

dman
Posts: 24
Joined: Mon Jul 18, 2016 10:50 am

Re: Bug when "copy" from a closed workfile

Postby dman » Tue Feb 28, 2023 11:28 am

EViews Gareth wrote:Which issue (or both?)

This one

Code: Select all


wfuse %filepath1
wfopen %filepath2
copy(o) %filepath2::* %filepath1::

Where %filepathX is a full path like "C:\work\fileX.wf1"

EViews Steve
EViews Developer
Posts: 788
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Bug when "copy" from a closed workfile

Postby EViews Steve » Tue Feb 28, 2023 12:34 pm

Will be fixed in next patch.

dman
Posts: 24
Joined: Mon Jul 18, 2016 10:50 am

Re: Bug when "copy" from a closed workfile

Postby dman » Wed Mar 01, 2023 9:20 am

EViews Steve wrote:Will be fixed in next patch.

Thanks.
Any ETA on that next patch?

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

Re: Bug when "copy" from a closed workfile

Postby EViews Gareth » Wed Mar 01, 2023 12:03 pm

Today
Follow us on Twitter @IHSEViews

dman
Posts: 24
Joined: Mon Jul 18, 2016 10:50 am

Re: Bug when "copy" from a closed workfile

Postby dman » Thu Mar 02, 2023 8:27 am

It worked, thank you!


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 4 guests