![]() |
Error firing vbld_BuildStarting event
Hi,
Suddenly, today, a script of mine that has been running successfully for months failed to run with the following error in the output panel: Error firing vbld_BuildStarting event: Error in Project (VBScript) script code at Line 51, Column 6 Build ended. The build didn't even start, just sat there for a few seconds and eventually dumped out the error. The issue persists even when using backup copies of the scripts that are weeks or months old, so I doubt that it's the actual script that is causing the issue. Something must've changed with the environment, but I'm not sure how to proceed. Where is the vbld_BuildStarting event located? What VBScript should I look at to troubleshoot this? Visual Build Professional Version 7.2a |
Somewhere in the project script code (View | Other Windows | Script Editor -> Project tab). It's failing on line 51 (which could be the event function or a function called by it). Pressing F8 (Go | Last Error) after the error occurs should also take you there.
|
Thanks,
The full script is posted below and the failing method appears to be the CreateObject() method in the vbld_BuildStarting() method. Do you have any thoughts on what would causing this or how I would go about fixing it? Code:
Sub CreateShortcut(target, sname) |
Actually, it's probably failing on the .run method call, not CreateObject. You can determine that by separating into two lines:
Code:
Set shell = CreateObject("wscript.shell") |
You were right, the "shell.run" line failed. As you might've guessed, I didn't build this script myself, I'm just maintaining it. Are the last 20 lines or so in my source standard or custom?
Code:
Sub vbld_BuildStarting() If it's standard, do you have any idea what would cause it to suddenly start failing? Thank you! |
Visual Build does not have any predefined any script events. I don't know what SenderResult.exe is or what it does. Since the code uses a relative path, you might make sure that executable exists relative to the .bld file and that you have Tools | Application Options | General | Set current directory to project folder after loading and saving projects checked.
http://www.kinook.com/VisBuildPro/Manual/miscopt.htm |
Yup, that did it. Someone moved the target files that were being called by that custom script.
Thanks for your help! |
All times are GMT -5. The time now is 07:52 AM. |
Copyright © 1999-2023 Kinook Software, Inc.