Displaying 12 results from an estimated 12 matches for "hprocess".
Did you mean:
process
2010 Sep 20
1
Dynamic forking in Win32
...MEMORY_BASIC_INFORMATION basic_info;
printf("Original EXE loaded (PID = %d).\n", (int)pi.dwProcessId);
printf("Original Base Addr = %X, Size = %X\n",
(int)childInfo.baseAddr, (int)childInfo.imageSize);
if (VirtualQueryEx(
pi.hProcess,
(LPCVOID)childInfo.baseAddr,
&basic_info,
sizeof(MEMORY_BASIC_INFORMATION)) == 0) {
ErrorExit("VirtualQueryEx: Failed!\n");
TerminateProcess(pi.hProcess, 0);
exit(1);
}
else {
printf(...
2009 Apr 07
2
Running an R script from Delphi 7
...l, nil,
CreateOK := CreateProcess(Nil, PChar('C:\Program
Files\R\R-2.8.1\bin\R.exe '
+ CommandLine), nil, nil,
False, CREATE_NEW_PROCESS_GROUP+NORMAL_PRIORITY_CLASS, nil, nil,
StartInfo, proc_info);
if (CreateOK) then begin
WaitForSingleObject (proc_info.hProcess, INFINITE);
GetExitCodeProcess(proc_info.hProcess, ExitCode);
Result := True
end;
CloseHandle(proc_info.hThread);
CloseHandle(proc_info.hProcess);
end;
Now it seems to hang on the call on WaitForSingleObject toward the end.
My current version of R is 2.8.1 if th...
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
2011 Oct 06
2
[LLVMdev] [Patch] Build failure on Windows+MinGW (GCC and Clang)
...ckWalk64' as different kind of symbol
static fpStackWalk64 StackWalk64;
^
M:/Development/mingw64/bin/../lib/clang/3.0/../../../x86_64-w64-mingw32/include\psdk_inc/_dbg_common.h:269:20:
note: previous definition is here
WINBOOL IMAGEAPI StackWalk64(DWORD MachineType,HANDLE hProcess,HANDLE
hThread,LPSTACKFRAME64 StackFrame,PVOID
ContextRecord,PREAD_PROCESS_MEMORY_ROUTINE64
ReadMemoryRoutine,PFUNCTION_TABLE_ACCESS_ROUTINE64
FunctionTableAccessRoutine,PGET_MODULE_BASE_ROUTINE64
^
In file included from M:\Development\Source\LLVM\lib\Support\Signals.cpp:33:
M:\D...
2009 Jul 17
1
[LLVMdev] [PATCH 2/2] Make Program::ExecuteNoWait return a process ID.
...path.toString() + "'");
- return;
+ return 0;
}
// Make sure these get closed no matter what.
@@ -463,9 +463,11 @@ Program::ExecuteNoWait(const Path& path,
MakeErrMsg(ErrMsg, std::string("Unable to set memory limit"));
TerminateProcess(pi.hProcess, 1);
WaitForSingleObject(pi.hProcess, INFINITE);
- return;
+ return 0;
}
}
+
+ return pi.dwProcessId;
}
bool Program::ChangeStdinToBinary(){
--
1.6.3.3
2008 Dec 17
1
CreateProcess for Unix binaries
The CreateProcess function sets a lpProcessInformation field. This field is set when a Windows process is called, but erased when a Unix binary (e.g. /bin/sleep 2) is called, so the hprocess handle is unknown. Is there a way to obtain this process handle so that GetExitCodeProcess can be called? I basically want to know when the called process has exited.
Thanks
2007 Aug 06
0
cannot use winedbg on ubuntu feisty ?
...t frame>, fmap=<register EDI not in topmost frame>)
[/home/dex/wine-0.9.42/dlls/dbghelp/elf_module.c:1143] in dbghelp
(0x0033f4b8)
9 0x7ec4a7eb module_get_debug+0x1ab(pair=0x33f750)
[/home/dex/wine-0.9.42/dlls/dbghelp/module.c:303] in dbghelp
(0x0033f728)
10 0x7ec5de08 SymFromAddr+0x68(hProcess=<register EAX not in topmost
frame>, Address=<register ESI not in topmost frame>,
Displacement=<register EAX not in topmost frame>, Symbol=0x33f870)
[/home/dex/wine-0.9.42/dlls/dbghelp/symbol.c:1043] in dbghelp
(0x0033f778)
11 0x7ecb07cb stack_get_current_symbol+0x6b(symbol=<...
2009 Jul 17
0
[LLVMdev] [PATCH 2/2] Make Program::ExecuteNoWait return a process ID.
...");
> - return;
> + return 0;
> }
>
> // Make sure these get closed no matter what.
> @@ -463,9 +463,11 @@ Program::ExecuteNoWait(const Path& path,
> MakeErrMsg(ErrMsg, std::string("Unable to set memory limit"));
> TerminateProcess(pi.hProcess, 1);
> WaitForSingleObject(pi.hProcess, INFINITE);
> - return;
> + return 0;
> }
> }
> +
> + return pi.dwProcessId;
> }
>
> bool Program::ChangeStdinToBinary(){
> --
> 1.6.3.3
>
> _______________________________________________
>...
2009 Jul 17
3
[LLVMdev] [PATCH 1/2] Trailing whitespace.
---
include/llvm/System/Program.h | 8 ++++----
lib/System/Unix/Program.inc | 30 +++++++++++++++---------------
2 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/include/llvm/System/Program.h b/include/llvm/System/Program.h
index 49de7cf..14f9e9e 100644
--- a/include/llvm/System/Program.h
+++ b/include/llvm/System/Program.h
@@ -97,12 +97,12 @@ namespace sys {
///
2010 Aug 23
1
[Bug] [Urgent] CreateProcess Failed internal error (1359)
...// Pointer to STARTUPINFO structure
&pi ) // Pointer to PROCESS_INFORMATION structure
)
{
printf( "CreateProcess failed (%d).\n", GetLastError() );
fwprintf(fil,L"CreateProcess failed (%d).\n", GetLastError());
fflush(fil);
}
hands[i] = pi.hProcess;
}
fclose(fil);
for(int i=0;i<max;i++)
{
// Wait until child process exits.
WaitForSingleObject( hands[i], INFINITE );
// Close process and thread handles.
CloseHandle( hands[i] );
}
printf( "End %d\n", arg);
return Quit(0);
}
When I execute it on windows...
2005 Nov 27
1
Question about wine 0.9.2 and VideoLan Media Client
...+0xfb(module=0x7fd48210, fmap=0x0)
[/home/tom/build/wine-0.9.2/dlls/dbghelp/elf_module.c:979] in dbghelp
(0x7fa8d07b)
8 0x7fa8fd4f module_get_debug+0x8f(pcs=0x7fd156a0, module=0x7fd48210)
[/home/tom/build/wine-0.9.2/dlls/dbghelp/module.c:231] in dbghelp
(0x7fa8fd4f)
9 0x7faa0143 SymFromAddr(hProcess=0x24, Address=0xb7edd093,
Displacement=0x7fbaf738, Symbol=0x7fbaf778)
[/home/tom/build/wine-0.9.2/dlls/dbghelp/symbol.c:874] in dbghelp
(0x7faa0143)
10 0x7fbe2b56 stack_get_frame+0x66(symbol=0x7fbaf778, ihsf=0x0)
[/home/tom/build/wine-0.9.2/programs/winedbg/stack.c:123] in winedbg
(0x7fbe2b5...
2016 Jan 22
0
Wine release 1.9.2
...ent are signaled.
Christian Costa (1):
d3dx9: Implement D3DXCreateAnimationController with a stubbed ID3DXAnimationController interface.
Fran?ois Gouget (10):
shell32/tests: The expectedArgs parameter of the DDE tests is an argument count, not a boolean.
shell32/tests: Check the hProcess field when ShellExecuteEx() fails.
shell32/tests: Create_test_association() should either succeed or fail due to insufficient permissions.
shell32/tests: Fix the shortcut vs. class interaction test.
tests: Use plain printf() calls instead of fprintf(stdout).
kernel32/tests:...