Help please - i get an error without an error

Dear community,

I have a problem with an error that occurred lately in one of my finalbuilder projects:

A build action (VS2003 .NET solution) builds a relatively large project. Everything runs fine and I get all the results I want. No errors and nothing failed. Nevertheless the build action fails!

The last few lines in the log read like this:

---------------------- Done ----------------------

    Build: 9 succeeded, 0 failed, 0 skipped 

     OpenAccess All: 0 succeeded, 0 failed, 9 skipped    

An action fails only if an error code <> 0 returns from the called tool, right? Please correct me, if that's not right.
That would mean that an error code > 0 is delivered because of - that's only a guess - the skipped OpenAccess classes, but that shouldn't be an error (because it is none).

Does anybody has experiences with troubles like this and can give me a hint what to do now? Anybody who works with Vanatec's OpenAccess as well?

I have to sort that out somehow and any help would be highly appreciated.

Best regards, Gerald

Hi Gerald,

Sorry to hear you’re having problems.

To work around a shortcoming in some Visual Studio versions where sometimes the exit code is zero despite “0 succeeded” projects, FinalBuilder explicitly checks for this string in the output.

I’ll fix it so that it checks for the inverse (> 0 succeeded projects) instead, and provide you with a test build ASAP.

Regards,

Angus

Thank you for the quick response!

If I got you right: You can't rely on the Visual Studio exit code and therefore you parsed for the output string "0 succeeded" ???
Means MS doesn't provide consistent exit codes?

Or is it only exit code 0 and "0 succeeded" - only in that case? I mean "0 succeeded" doesn't mean something failed. Maybe there was nothing to build for example. If you have to parse for some output strings to determine the result then why not parse for the number of failed ones?

> I'll fix it so that it checks for the inverse (> 0 succeeded projects) instead, and provide you with a test build ASAP.

That would be great, because we started using Vanatec's Open Access more and more and the problem will then probably occure in every of those projects (when OpenAccess enhancement is deactivated).

Looking forward to read from you.
Best regards,

Gerald Kreutzer

Hi Gerald,

Here’s a link to a FinalBuilder test build which checks for failed projects instead of zero succeeded. It should work with your setup, please let us know how you go.

https://www.finalbuilder.com/downloads/finalbuilder/550/FB550_671.exe

Regards,

Angus