Displaying 6 results from an estimated 6 matches for "startf_usestdhandl".
Did you mean:
startf_usestdhandles
2006 Nov 21
3
Fw: re. win32-process
...= $stdout.clone
my_err = $stderr.clone
my_out.reopen(''NUL'')
my_err.reopen(''NUL'')
Process.create(
:app_name => app_name,
:inherit => true,
:creation_flags => Process::DETACHED_PROCESS,
:startup_info => {
:startf_flags => Process::STARTF_USESTDHANDLES,
:stdout => my_out,
:stderr => my_err
}
)
I think it would be neat if you could pass IO objects (or perhaps a fileno) to :stdout, :stderr, and :stdin directly. Any ideas on how to do that?
Thanks,
Dan
----- Forwarded Message ----
From: Kirill Miazine <km at krot.org&g...
2009 Apr 07
2
Running an R script from Delphi 7
...longword;
CreateOK : Boolean;
begin
Result := False;
{ Initialize the structures }
FillChar(proc_info, sizeof (TProcessInformation), #0);
FillChar(startinfo, sizeof (TStartupInfo), #0);
Startinfo.cb := sizeof (TStartupInfo);
Startinfo.dwFlags := STARTF_USESHOWWINDOW or STARTF_USESTDHANDLES;
Startinfo.wShowWindow := SW_HIDE;
{ Attempt to create the process. If successful wait for it to end}
// CreateOK := CreateProcess(nil, nil, nil, nil, nil,
CreateOK := CreateProcess(Nil, PChar('C:\Program
Files\R\R-2.8.1\bin\R.exe '
+ CommandLine), nil, nil,...
2008 Feb 27
0
Making redirecting output with win32-process a bit easier
...IO objects or file descriptors (i.e. a fileno). However,
# StringIO objects are not currently supported.
+ #
+ # If ''stdin'', ''stdout'' or ''stderr'' are specified, then the +inherit+ value
+ # is automatically set to true and the Process::STARTF_USESTDHANDLES flag is
+ # automatically OR''d to the +startf_flags+ value.
#
# The ProcessInfo struct contains the following members:
#
@@ -381,8 +385,10 @@
if handle == INVALID_HANDLE_VALUE
raise Error, get_last_error
end
-
+
si_hash...
2006 Dec 04
8
Calling R functions in Delphi
Hello All,
We would like to call quantile() function from the R-package STATS in a
Delphi program. If this is possible, could anyone provide us with an
example?
Thanks in advance.
--Anna
-----------------------------------------
Anna Belova
Abt Associates Inc.
4800 Montgomery Ln, St 600
Bethesda, MD-20814
phone: 301-347-5304
fax: 301-652-7530
http://www.abtassociates.com/environment
2010 Aug 23
1
[Bug] [Urgent] CreateProcess Failed internal error (1359)
...if(arg > 0)
{
max = 2;
}
for(int i = 0; i < max; i++)
{
wchar_t buffer[255];
swprintf(buffer,255,L"\"%s\" %d %s%d",argv[0],arg + 1,argv[2],i);
STARTUPINFOW si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
si.dwFlags = STARTF_USESTDHANDLES/*|STARTF_USESHOWWINDOW*/;
//sui.wShowWindow = SW_HIDE;
ZeroMemory( &pi, sizeof(pi) );
// Start the child process.
if( !CreateProcessW( NULL, // No module name (use command line)
buffer, // Command line
NULL, // Process handle not inheritable
NULL,...
2020 Aug 01
0
Wine release 5.14
...erer handle instead of hConIn where possible.
wineconsole: Move WINECON_Spawn call to WINECON_Init.
wineconsole: Use console in/out handles only in WINECON_Init.
kernelbase: Lock console critical section when changing current console.
kernelbase: Fix handling processes using STARTF_USESTDHANDLES when setting standard handles in AllocConsole.
kernelbase: Close handles allocated by AllocConsole in FreeConsole.
kernel32/tests: Add more AllocConsole tests.
kernelbase: Use init_console_std_handles in AttachConsole.
winegcc: Support file alignment on msvc target....