Need help with issue loading project file from atcmd.exe

I'm getting a project load error from atcmd.exe when trying to run an Automise script that I know works. I created a smiple script that only exports the log to the current folder. I'm calling it like this


    "c:\program files\automise 2\atcmd.exe" /Ptest.atp2

or like this

    "c:\program files\automise 2\atcmd.exe" test.atp2


both produce the same error. This same setup works on another machine. I can also load and run this successfully via the IDE. Please help - I've tried a number of different things including uninstalling and reinstalling Automise. I am running Automise version 2.0.0.157. This is the exact error I'm getting:


    Error Loading Project File : CoInitialize has not been called

    Exit with return code: 9 (PROJECTLOADERROR)

 

Thanks.  --Chris

Hi Chris

Can you update to the current version and see if the error still occurs?

Thanks Vincent - that did the trick. I’m curious though as to what caused this problem. Should I be upgrading our other installations?

Ok, just looked up the cause in our source control. We took an update (bugfix) from a third party component vendor. In this update they added a call to CoInitialize which ended up getting called before our own call to it, but with different parameters… this resulted in our error handling sometimes thinking it had not been called. We made a change in build 159 and later to make sure that CoInitialize was called before anything else is done, and we also check the result of the call (no more taking it for granted that it would succeed!).

I would therefore recommend you update your other installations.