Page 1 of 1
Bug when "copy" from a closed workfile
Posted: Fri Jan 27, 2023 9:24 am
by johansamuelsson
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
Re: Bug when "copy" from a closed workfile
Posted: Mon Jan 30, 2023 12:27 pm
by EViews Steve
Thanks for the bug report.
This will be fixed in the next patch.
Re: Bug when "copy" from a closed workfile
Posted: Mon Feb 06, 2023 2:53 pm
by dman
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
Where %file1 is "file1"
Re: Bug when "copy" from a closed workfile
Posted: Tue Feb 28, 2023 10:55 am
by dman
Updated to the most recent release of Eview13, and the issue is still there.
Any help?
Re: Bug when "copy" from a closed workfile
Posted: Tue Feb 28, 2023 11:05 am
by EViews Gareth
Which issue (or both?)
Re: Bug when "copy" from a closed workfile
Posted: Tue Feb 28, 2023 11:28 am
by dman
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"
Re: Bug when "copy" from a closed workfile
Posted: Tue Feb 28, 2023 12:34 pm
by EViews Steve
Will be fixed in next patch.
Re: Bug when "copy" from a closed workfile
Posted: Wed Mar 01, 2023 9:20 am
by dman
Will be fixed in next patch.
Thanks.
Any ETA on that next patch?
Re: Bug when "copy" from a closed workfile
Posted: Wed Mar 01, 2023 12:03 pm
by EViews Gareth
Today
Re: Bug when "copy" from a closed workfile
Posted: Thu Mar 02, 2023 8:27 am
by dman
It worked, thank you!
Re: Bug when "copy" from a closed workfile
Posted: Tue Jun 11, 2024 11:26 pm
by johansamuelsson
Hi, the problem with the "Maximum number of Workfiles" seems to have returned.
When I run the code below, I get the error message
Maximum number of Workfiles are already open
in "COPY C:\TEMP\TEST31.WF1::A\A31 A\B31" in
Test.PRG on line 11.
Is there any suggested solution?
Eviews 13: Standard Edition - May 7 2024 build. Same error message in Eviews 14: Enterprice Edition - Jun 10 2024 build
Regards Johan
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
Copy C:\Temp\Test{!i}.Wf1::A\a{!i} A\b{!i}
Next
Re: Bug when "copy" from a closed workfile
Posted: Wed Jun 12, 2024 8:29 am
by EViews Steve
Thanks for the bug report. This will be fixed in the next 13 and 14 beta patch.