# Delphi Build Fails

**URL:** https://www.finalbuilder.com/forums/t/delphi-build-fails/3297
**Category:** Bugs
**Created:** [September 21, 2010, 2:47am UTC](https://www.finalbuilder.com/forums/t/delphi-build-fails/3297 "2010-09-21T02:47:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nickd](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/898d66/32.png) [@nickd](https://www.finalbuilder.com/forums/u/nickd)
#### Post date: [September 21, 2010, 2:47am UTC](https://www.finalbuilder.com/forums/t/delphi-build-fails/3297/1 "2010-09-21T02:47:08Z")

</div>

&nbsp;&nbsp;Hi.

I'm running FinalBuilder 7.0.0.515 and trying to build a pretty basic Delphi 5 project.

It was working ok, although it did fail the odd time and say it couldn't write the .exe

Now though it fails every time with the following message:

Error Executing script : BeforeAction

EInvalidCast

Invalid class typecast

Line : 1

Char : 1

Error in BeforeScript : VBScript, This Action did not execute.

As this is my development machine, the Visual Studio debugger kicked in and if I debug, what I see is in the attached image.

  
Can you help?

&nbsp;

Nick Delany

&nbsp;

![ScreenHunter_01_Sep._21_14.30.jpg](https://www.finalbuilder.com/forums/uploads/default/original/2X/4/4cdc744fccf3d449bb242d69cc7baf7222d86dcd.jpeg)

---

<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: [September 21, 2010, 10:33am UTC](https://www.finalbuilder.com/forums/t/delphi-build-fails/3297/2 "2010-09-21T10:33:28Z")

</div>

Hi Nick   
  
 Please update to the latest release build, or you can use this build from yesterday :   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_706.exe](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_706.exe)   
  
 We’ll be releasing another official update in the next day or two.

---

<div class="post-metadata">

### Author: ![nickd](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/898d66/32.png) [@nickd](https://www.finalbuilder.com/forums/u/nickd)
#### Post date: [September 22, 2010, 10:51am UTC](https://www.finalbuilder.com/forums/t/delphi-build-fails/3297/3 "2010-09-22T10:51:37Z")

</div>

I updated to 642. No change.

---

<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: [September 22, 2010, 11:59am UTC](https://www.finalbuilder.com/forums/t/delphi-build-fails/3297/4 "2010-09-22T11:59:55Z")

</div>

Hi Nick   
  
 What value does your VERSION\_MAJOR variable have? It’s probably best if you contact support at [finalbuilder.com](http://finalbuilder.com) with your project file so we can see what is happening and try to reproduce the problem here.
