Overnight build scenario (devenv.exe) - runtime error

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ed (ed_randall_at_yahoo.com)
Date: 05/12/04


Date: Wed, 12 May 2004 04:28:31 -0700

I am trying to set up a "continuous build" system for our
project,
which consists of a large amount of Java and C++ code.

For the C++ development we are using the Visual C++ .NET
2003 IDE.

Apparently support for exporting "makefiles" and building
using "nmake" has been
removed from this edition, but one is still supposed to be
able to build without
running up the GUI using "devenv.exe" or the
optional "vcbuild.exe".

The build machine runs Windows 2000 professional.
Initially I tried using "at"
to schedule a .bat file which executed the various tasks,
but could not easily
get this to do everything we need, so I installed "cygwin"
and am using a "bash"
script invoked by its "cron" timer. This invokes the
various builds and tests,
gathers all the results, generates a web page and emails a
summary to the team.

Now I want to incorporate the C++ build to the task, but
when the compile
starts the following dialog box pops up and the build
hangs until it is acknowledged:

-----------------------------------------------------------
-------------------
Microsoft Visual C++ Runtime Library
-----------------------------------------------------------
-------------------
Runtime Error!

Program: ...Microsoft VisualStudio .NET 2003\Common7
\IDE\devenv.exe

This application has requested the runtime to terminate it
in an unusual way.
Please contact the application's support team for more
information.
                                 [ OK ]
-----------------------------------------------------------
-------------------

The process then exits.
Since this is supposed to be an overnight build I've had
to disable the C++
compilation until I can solve this problem.

This only happens when the script is invoked from "cron",
when I run it manually
from the command line the error doesn't appear, so I
suspect it may be caused by
sort of difference in the execution environment.
The error only happens with /build or /rebuild, but
not /clean implying it is
compilation-related.

I've tried all sorts of different flags on devenv, I've
tried invoking it from
cmd.exe, I've tried using vcbuild.exe, I've printed out
the environment variables
and ensured that everything is the same in the "command
line" and "cron" cases,
but unfortunately none of these seem to help; Is anyone
here doing anything
similar, can you shed any light on the problem, can anyone
here please help?

Here are some of the invocations I've tried using:
    devenv.exe xml.vcproj /rebuild Debug /out autobuild.log
    cmd /Q /D /C devenv.exe xml.vcproj /rebuild Debug /out
autobuild.log
    vcbuild.exe /nologo /showenv /time /rebuild xml.vcproj
Debug >autobuild.log

Any ideas anyone?

Thanks

Ed



Relevant Pages