stdcxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Chariton <>
Subject Scripting Errors in Error Paths for Windows Scripts?
Date Fri, 24 Mar 2006 23:51:41 GMT

Before Martin set me straight on how to build the library for Windows, I was
getting errors off of the scripts in the \etc\config\windows directory.  I
was getting an error off of this section of code in generate.wsf:


function readAndCheckArguments()


    if (!WScript.Arguments.Named.Exists("CONFIG"))



            "Generate: Missing required argument.");






The error would occur at WScript.StdErr.WriteLine(.  I would get error code
80070006, Handle Is Invalid.  When I got this error the script would hang
and not exit gracefully.


I finally stumbled across this Web page:


According to this page, StdErr can only be used when cscript is the host
executable.  The page further states that the Handle Is Invalid message will
be generated if you attempt to use this property when running a script under


I am not knowledgeable in this area.  Can anyone confirm that this is true?
There is a lot of usage of WScript.StdErr throughout the scripts.  It may
just be related to what I was doing at the time and not a problem.  However,
if there is a problem with this usage, the scripts should be corrected.


Craig Chariton



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message