# Need help with issue loading project file from atcmd.exe

**URL:** https://www.finalbuilder.com/forums/t/need-help-with-issue-loading-project-file-from-atcmd-exe/4341
**Category:** Discussion
**Created:** [January 12, 2009, 11:10am UTC](https://www.finalbuilder.com/forums/t/need-help-with-issue-loading-project-file-from-atcmd-exe/4341 "2009-01-12T11:10:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [January 12, 2009, 11:10am UTC](https://www.finalbuilder.com/forums/t/need-help-with-issue-loading-project-file-from-atcmd-exe/4341/1 "2009-01-12T11:10:45Z")

</div>

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  
  
  
&nbsp;&nbsp;&nbsp; "c:\program files\automise 2\atcmd.exe" /Ptest.atp2  
  
or like this  
  
&nbsp;&nbsp;&nbsp; "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:  
  
  
&nbsp;&nbsp;&nbsp; Error Loading Project File : CoInitialize has not been called  
  
&nbsp;&nbsp;&nbsp; Exit with return code: 9 (PROJECTLOADERROR)

&nbsp;

Thanks.&nbsp; --Chris

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 12, 2009, 11:24am UTC](https://www.finalbuilder.com/forums/t/need-help-with-issue-loading-project-file-from-atcmd-exe/4341/2 "2009-01-12T11:24:39Z")

</div>

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

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [January 13, 2009, 3:35am UTC](https://www.finalbuilder.com/forums/t/need-help-with-issue-loading-project-file-from-atcmd-exe/4341/3 "2009-01-13T03:35:44Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 13, 2009, 4:05am UTC](https://www.finalbuilder.com/forums/t/need-help-with-issue-loading-project-file-from-atcmd-exe/4341/4 "2009-01-13T04:05:02Z")

</div>

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.
