PDA

View Full Version : error code 1073741819 in comlex VC6 project


morlajb
01-21-2006, 06:44 AM
Hi

I have a complex project ( 150 steps , include 80 steps of VC6)

" Process completed with exit code -1073741819

Failed to build project: msdev.exe exited with error code -1073741819 "

the VC6 project is completed , but this error code stop the build project. how can I ignore this error / or fix it ???

Thanks, Mor

kinook
01-21-2006, 08:24 AM
That error code is being returned by msdev (the VC6 command-line compiler that VBP invokes to actually perform the build. If the build has successfully completed, you can use the workaround described here: http://www.kinook.com/Forum/showthread.php?threadid=1463.

Otherwise, you would need to open a support incident with Microsoft regarding the problem. You can reproduce the problem outside VBP by checking the 'Display command-line...' option on the Options tab of the Make VC6 action, build again, and then copy/paste the failing msdev call into a Command Prompt and running there.

morlajb
01-24-2006, 06:35 AM
Hi

Thank for the quick response.

I am trying to ignore this error code - If I understan correcty I need to add check for every VC6 project that check the exit code and ignore the specific "-1073741819 ".

Can I get a sample of this , I tried with No luck...

Thanks , Mor

morlajb
01-24-2006, 11:32 AM
Hi

I got this error--> "Process completed with exit code -1073741819"

I think that the problem is in the visual build , because I didn't get it when I compile with MSDEV.

I can't build a test case for you , because it's NOT happend all the time. but when I 'cut' my project into small projects it's OK.

I think that you have a minor memory leak ....

Sorry & Thanks , Mor

kinook
01-24-2006, 11:50 AM
The problem is in msdev, not VBP. To get an accurate comparison outside of VBP, you need to echo the exitcode after running MSDEV (running msdev in a command prompt or batch file will ignore the exit code [you can do the equivalent of this in VBP by unchecking 'Build failure steps' and checking 'Continue building' on the General tab]). Paste the msdev command into a batch file and add another line right after that:

echo Process completed with exit code %ERRORLEVEL%

Then execute the batch file from a command prompt to see the exit code.

To ignore that specific exit code for all Make VC6 steps in VBP, select all the Make VC6 steps in your project, select View | Properties on the menu, click the Script Editor button, copy/paste (requires VBP v6 and VBScript as default script language):

Sub vbld_StepDone()
If CLng(Application.ExpandMacros("%RUNPROGRAM_EXITCODE%")) = -1073741819 Then
Step.BuildStatus = vbldStepStatSucceeded
End If
End Sub

into the Step tab, select File | Save & Close on the Script Editor menu, then click OK.

morlajb
01-25-2006, 09:40 AM
Hi

Thank for the quick response , I tried your work around , and until now it's looks OK.

Thanks , Mor