PDA

View Full Version : Mysterious failures during build


andy t
05-02-2007, 11:09 AM
Greetings,

We have a build script that at one point it fires of a .net program to run unit tests. However, the unit test process will fail intermittently with the following message:

Process completed with exit code -2146233082

This appears to happen at random intervals. What could be the causes of this behavior ?

Thanks!

kinook
05-02-2007, 12:07 PM
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:


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