EViews 13 COM Automation: include statement
Posted: Tue Sep 27, 2022 9:17 am
There appears to be an issue with the way the EViews 13 COM Automation interface is handling the include statement. I've attached a short sample program to demonstrate the issue. Please unzip the contents to C:\temp and run the eviewscom.exe program.
When the EViews 12 version of EViewsMgr.dll is registered, the program behaves as expected.
However, when the EViews 13 version of EViewsMgr.dll is registered, the program crashes at (or just after) the include statement. I believe that the root cause is that the program variable %afile is going out of scope across the include statement and generating an access violation. It's almost as if it's treating the include as an exec statement instead - for which the program variables would be expected to go out of scope.
Note that if you run the eviewsmgr.prg directly in the EViews 12 or 13 environment, it behaves as expected and creates a series x with the constant value of 1 in the workfile work.wf1.
When the EViews 12 version of EViewsMgr.dll is registered, the program behaves as expected.
However, when the EViews 13 version of EViewsMgr.dll is registered, the program crashes at (or just after) the include statement. I believe that the root cause is that the program variable %afile is going out of scope across the include statement and generating an access violation. It's almost as if it's treating the include as an exec statement instead - for which the program variables would be expected to go out of scope.
Note that if you run the eviewsmgr.prg directly in the EViews 12 or 13 environment, it behaves as expected and creates a series x with the constant value of 1 in the workfile work.wf1.