View Single Post
  #2  
Old 05-02-2007, 12:07 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,015
That is the exit code returned by a program being run by VBP (VBP is just reporting the failure since a non-zero exit code is normally treated as an error condition). -2146233082 corresponds with hex code 0x80131506; see here for some possible causes: http://www.google.com/search?q=0x80131506

The best solution would be to fix that program to not return a non-zero exit code on success.

A possible workaround would be to have VBP ignore that exit code instead of treating it as a failure. If you're using a Run Program action, this could be done by setting the 'Success exit codes' field to

0, -2146233082

http://www.visualbuild.com/Manual/programtab.htm

For custom user or other types of actions, add a vbld_StepDone script event like this:

Code:
Sub vbld_StepDone()
  If CLng(Application.ExpandMacros("%RUNPROGRAM_EXITCODE%")) = -2146233082 Then
    Step.BuildStatus = vbldStepStatSucceeded
  End If
End Sub
http://www.visualbuild.com/Manual/scriptevents.htm
Reply With Quote