128 Return Code

From: scallejo (scallejo_at_discussions.microsoft.com)
Date: 11/01/04


Date: Mon, 1 Nov 2004 12:16:02 -0800

I have a C++ program that executes a command line through the system
function. In the command line, I execute another program that will pipe its
output to a third program.

ie:

system("prg1.exe | prg2.exe");

This statement works most of the time.

On occasions, I will get a 128 error code.

Based on some debugging statements I placed in prg1 and prg2, prg1 executes
and completes sucessfully (return code 0), I then get a 128 error code
without prg2 ever executing (no messages associated with prg2 start up).

No where in prg2 or prg1 do I return back a 128 status code.

The 128 error code seems to be coming from the OS as a result of its
inability to start up the second program prg2.

The error is intermittent and seems to occur during peak usage.

Does any one know of any documentation that outlines a 128 error code
associated to some type of OS resource constraint.



Relevant Pages

  • Re: 128 Return Code
    ... Automate your software builds with Visual Build Pro ... >I have a C++ program that executes a command line through the system ... In the command line, I execute another program that will pipe ... I will get a 128 error code. ...
    (microsoft.public.vc.language)
  • Re: 128 Return Code
    ... "scallejo" wrote in message ... > I have a C++ program that executes a command line through the system ... In the command line, I execute another program that will pipe ... I will get a 128 error code. ...
    (microsoft.public.vc.language)
  • Re: MS Update Website problem
    ... a colleague of mine was able to discover that the error code ... This must set some kind of record even for Microsoft. ... At the command prompt, type the following commands, and then press ENTER ... To rename the Catroot2 folder, ...
    (microsoft.public.windowsupdate)
  • Re: Newbie question on C library system() function
    ... rest of my app executes. ... printer to see whether it completed a command yet. ... the characters to the printer, but the characters are getting buffered ... Most operating systems provide ways outside of C to wait gracefully; ...
    (comp.lang.c)
  • Re: Using os.system() and string concatenation
    ... > I think take those lists and provide them to an os.systemcall. ... > This executes without any errors, but doesn't execute the command ... > supply it to os.systemit executes just fine. ... a shell command out of data from files, ...
    (comp.lang.python)