AustralianAntarcticDivision / EchoviewR

The R package EchoviewR - a free interface between Echoview and R using COM scripting.
http://australianantarcticdivision.github.io/EchoviewR/
Other
16 stars 9 forks source link

EVAppObj <- COMCreate('EchoviewCom.EvApplication') #1

Closed dmwarn closed 7 years ago

dmwarn commented 7 years ago

Greetings. I've done a bit of searching in the EchoviewR code to try to solve my issue but have failed to find anything.

What is happening is I am attempting to add an ecs file to an EV file first created in Echoview 4.9 in order to incorporate calibration settings in the fashion required by Echoview post v5.0.

Initially I tried to do this on an EV file created in Echoview v4.9 and it failed. I assumed it was because you can't add an ecs file to a v4.9 file. Now whenever I run the line EVAppObj <- COMCreate('EchoviewCom.EvApplication') it opens Echoview v4.9 rather than v 7.1. I am not sure how to change this.

Is there a way to control/reset which Echoview version gets opened when there is more than one version installed? The COMCreate() function now opens Echoview v 4.9 even if I already have v7.1 open.

Thanks, Dave Warner

martinjamescox commented 7 years ago

Hi Dave, I think if you run the EV version you want to use as administrator that should resolve this issue. Cheers, Martin

dmwarn commented 7 years ago

Thanks Martin.

So so too does a reinstall of EchoviewR. Cheers, Dave

On Wed, Feb 8, 2017 at 7:44 PM, martinjamescox notifications@github.com wrote:

Hi Dave, I think if you run the EV version you want to use as administrator that should resolve this issue. Cheers, Martin

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lisamarieharrison/EchoviewR/issues/1#issuecomment-278510900, or mute the thread https://github.com/notifications/unsubscribe-auth/AHDWLoNOgBTYx45fD5oq2xFHDGGqwOQxks5ramFxgaJpZM4L62Kg .

-- David Warner Research Fisheries Biologist U.S.G.S. Great Lakes Science Center 1451 Green Road Ann Arbor, MI 48105 734-214-9392

rolandproud commented 7 years ago

Hi Martin,

I'm running EV versions 4.9 and 7.1 in win10.

Changing the 4.9v to run as admin registers that version for COM but when using EchoviewR the following error occurs:

EVAppObj <- COMCreate('EchoviewCom.EvApplication') 'Failed to create COM object: The requested operation requires elevation.'

I resolved this issue by removing 'run as admin' from v4.9.

Setting any EV version to run as admin and opening once registers that version for COM. Once done, i suggest changing the settings of all EV.exes to not run as admin, to avoid this error and to avoid registering the wrong EV version for COM.

Cheers,

Roland