Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-02-2007, 12:09 PM
andy t andy t is online now
Registered User
 
Join Date: 04-24-2007
Posts: 2
Mysterious failures during build

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!
Reply With Quote
  #2  
Old 05-02-2007, 01:07 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,758
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
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 11:42 PM.


Copyright 1999-2019 Kinook Software, Inc.