# FinalBuilder crashes when two instances are started simultaneously

**URL:** https://www.finalbuilder.com/forums/t/finalbuilder-crashes-when-two-instances-are-started-simultaneously/2630
**Category:** Bugs
**Created:** [May 8, 2006, 10:23am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-crashes-when-two-instances-are-started-simultaneously/2630 "2006-05-08T10:23:55Z")
**Posts on this page:** 5
**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: [May 8, 2006, 10:23am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-crashes-when-two-instances-are-started-simultaneously/2630/1 "2006-05-08T10:23:55Z")

</div>

We have a CCNet integration server, with two projects. Both projects use FinalBuilder for compiling - but if changes are commited simultaneously, two FinalBuilder windows are started - and we get the following exception:  
  
WARNING Action class : "TFBScriptBasedAction" is not loaded and is referenced by this project, if you save this project the missing actions will be deleted from the project  
WARNING Action class : "TFBScriptBasedAction" is not loaded and is referenced by this project, if you save this project the missing actions will be deleted from the project  
WARNING Action class : "TFBDotNetCustomAction" is not loaded and is referenced by this project, if you save this project the missing actions will be deleted from the project  
 (To correct the issue, go to Tools -\> Package Manager and ensure the relevant action package (.bpl) file is loaded and enabled.)

---

<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: [May 9, 2006, 6:43am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-crashes-when-two-instances-are-started-simultaneously/2630/2 "2006-05-09T06:43:16Z")

</div>

I’m not sure what is causing this, however I expect it will be an environmental issue. Rather than calling the FinalBuilder IDE from Cruise Control, you should be using the Cruise Control Task which can be downloaded from our website. This task uses the consolve version of FinalBuilder.

---

<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: [May 9, 2006, 10:17am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-crashes-when-two-instances-are-started-simultaneously/2630/3 "2006-05-09T10:17:21Z")

</div>

As stated in my post on the WishList, I miss some parameters for running FinalBuilder using that task. However, I changed my ccnet.config to us FBCMD, and it works much better, but now I got this:  
Init Error : Cannot open file “C:\Program Files\FinalBuilder 4\ActionDefs\FBMSNMessenger.fbapx”. The process cannot access the  
  
So it would seem the MSN task dll is locked when loaded.  
  
I will simply delete the MSN task, and hopefully that will solve the problem for now.

---

<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: [May 10, 2006, 1:46am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-crashes-when-two-instances-are-started-simultaneously/2630/4 "2006-05-10T01:46:57Z")

</div>

Posted By Espen Albrektsen on 09 May 2006 3:17 AM  
As stated in my post on the WishList, I miss some parameters for running FinalBuilder using that task. However, I changed my ccnet.config to us FBCMD, and it works much better, but now I got this:  
Init Error : Cannot open file "C:\Program Files\FinalBuilder 4\ActionDefs\FBMSNMessenger.fbapx". The process cannot access the  
  
So it would seem the MSN task dll is locked when loaded.  
  
I will simply delete the MSN task, and hopefully that will solve the problem for now.
  
I don't think this is an issue with the MSN package, it's an issue with all protected FinalBuilder packages (fbapx files). I'm looking into this right now, it appears to be an issue with the way the file is opened. I will upload a test build with a potential fix for this soon (I have not been able to reproduce the error here so it's difficult to know for sure if the change I am about to make will fix it).

---

<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: [May 10, 2006, 2:39am UTC](https://www.finalbuilder.com/forums/t/finalbuilder-crashes-when-two-instances-are-started-simultaneously/2630/5 "2006-05-10T02:39:06Z")

</div>

Hi Espen  
  
I have uploaded a test build with a fix for this issue, and also an updated cruise control install.   
  
[https://www.finalbuilder.com/downloads/finalbuilder/410/FB410\_220.exe](https://www.finalbuilder.com/downloads/finalbuilder/410/FB410_220.exe)  
  
Install this build over your existing one, and then in the “…\FinalBuilder 4\[CruiseControl.NET](http://CruiseControl.NET) Integration Installer” folder you will find the setup program for the updated cruise control task, install that and you should then also be able to access the cruise control variables you mentioned in your post in the wish list forum.
