Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Suggestions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-09-2006, 08:15 AM
martys martys is online now
Registered User
 
Join Date: 06-09-2006
Posts: 24
Bad Idea: Call Subroutine in Failure

I had a subroutine set up to log everything necessary during either a success or failure (either at the end of the build or as the failure step). However, when outputing the log fails, it runs the failure step... which calls the subroutine... which fails and calls the failure step... which goes into an infinite loop. So that might want to be fixed.
Reply With Quote
  #2  
Old 06-09-2006, 09:43 AM
buckleyc buckleyc is online now
Registered User
 
Join Date: 06-08-2006
Location: Ohio
Posts: 3
May I suggest a workaround?

If you keep a counter or if there is an internal counter for number of failures, you could use a script step to check the counter and if it is beyond the threshold, stop the build.

I agree with adding some sort of way to prevent this. It would be nice if there was an option of "Do not execute if number of failed steps exceeds x."
Reply With Quote
  #3  
Old 06-09-2006, 12:47 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
It's probably a good idea to configure any steps that get called from failure steps and that might fail to not build failure steps and (possibly) continue building.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 02:15 AM.


Copyright © 1999-2023 Kinook Software, Inc.