Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   ResetBuildStatus -- endless loop. (https://www.kinook.com/Forum/showthread.php?t=533)

rd_bigdog 08-10-2004 09:02 AM

ResetBuildStatus -- endless loop.
 
We have noticed that sometimes when our scripts fail or even sometimes when they complete successfully, the script doesn't reset to the beginning. So, when the scheduled task runs each night, the script doesn't go from the top. I am trying to add a script task to the end to say, Builder.ResetBuildStatus, but this causes the script to fire off again from the top as oppose to just reset the script in preparation for the next run. Is there anyway for me to get around this?

Thanks,
Rick.

kinook 08-10-2004 10:45 AM

For each new instance of VBP (the GUI app, console app, or creating via the object model), it will normally start at the first project step when performing a build. Some things that could affect this:

1) If 'Tools | Application Options | General | Persist build status when saving project files' is checked, the completion status of the steps will be saved with the project. If that build is opened and started again, it will start from the beginning, but will skip the steps marked completed.

2) If a build is initiated via script code, the startType and startIndex parameters of the Start method will determine which step it starts at.

Assuming #1 is unchecked and you are launching either the GUI or Console app from a Scheduled Task, I don't see any way that the build would not start from the first project step. If you could provide a sample project + scheduled task info to reproduce this behavior we can certainly investigate. Also include the info from Help | About | Install Info in VBP, and the files listed in Tools | File Locations that exist on your box.


All times are GMT -5. The time now is 09:07 AM.


Copyright © 1999-2023 Kinook Software, Inc.