search for: waitforsingleobject

Displaying 20 results from an estimated 42 matches for "waitforsingleobject".

2004 Dec 10
5
win32-process 0.3.1 is out
Hi all, Just wanted to let you know that I released 0.3.1 last night. This addresses Bug #712 and incorporates Patches #1087 and #1137 (thanks Aslak). I''ll try to get an open4 implementation out this weekend, though I noticed that Aslak''s patch is different than what Park originally had, so I''ll have to decide which I prefer, or if they can be blended somehow.
2009 Apr 07
2
Running an R script from Delphi 7
...CreateProcess(nil, nil, nil, nil, 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...
2006 Dec 07
0
Fwd: win32-service problems with patch
...t); @@ -57,27 +51,27 @@ (LPHANDLER_FUNCTION)Service_Ctrl); if(ssh == (SERVICE_STATUS_HANDLE)0){ - ErrorStopService(); - rb_raise(cDaemonError,"RegisterServiceCtrlHandler failed"); - } - - // wait for sevice initialization - for(i=1;TRUE;i++) - { - if(WaitForSingleObject(hStartEvent, 1000) == WAIT_OBJECT_0) - break; - - SetTheServiceStatus(SERVICE_START_PENDING, 0, i, 1000); + // no service to stop, no service handle to notify, + // nothing to do but exit + return; } // The service has started. SetTheServiceStatus(SERVICE_RU...
2002 Mar 18
0
Wine's working, Buzz ain't happy...
...0000,00000000) ret=4068acdf 0807ec38:Call kernel32.TlsGetValue(00000006) ret=004a2b91 0807ec38:Ret kernel32.TlsGetValue() retval=403b5be4 ret=004a2b91 0807ec38:Call kernel32.TlsGetValue(00000006) ret=004a2b91 0807ec38:Ret kernel32.TlsGetValue() retval=403b5be4 ret=004a2b91 0807ec38:Call kernel32.WaitForSingleObject(00000090,00061a80) ret=00457105 0806edd8:Ret kernel32.CloseHandle() retval=00000001 ret=4062c0db 0806edd8:Call kernel32.CloseHandle(ffffffff) ret=4062c0e6 0807e908:Ret kernel32.WaitForSingleObject() retval=00000102 ret=413e651f 0807e908:Call ntdll.RtlEnterCriticalSection(413f67ec) ret=413e5aa1 08...
2001 Nov 07
1
WG: Re: Wine and the serial port [LONG]
...IO structure for WaitCommEvent. The code goes on, but now has different problems. Here is what our code does: - We have a "ListenerThread" that does the following, in pseudocode: if( WaitCommEvent(&eventmask) ) if(eventmask & EV_RXCHAR ) ReadFile() (of course, now with WaitForSingleObject() handling. Code excerpts available upon request). - Set RTS signals (if configured) - Write to the comport and do wait on -different- overlapped IO. Ther reason for this: If you use ReadFile() after WriteFile(), the following might happen on very slow machines: Data comes in on the serial line,...
2006 May 21
6
Possible problems with EventLog#write
Hi, I''ve got EventLog#write and EventLog.add_event_source methods done. Well, I *think* they''re done, but I can''t get the data (text) to work properly, and I''m not sure if it''s a bug in my .mc file, the add_event_source method, the write method, or just a goof in my test file. The source, category and event id seem to be ok. However, the
2006 May 11
9
world of warcraft doesnÄt work (sorry if double post)
if this is a doublepost please sorry bur the first post was blocked by spamfilter because of wrong timesettings on my local computer. i reaplyed to my original post and now im not shure if the mailserver thinks the message is corrupt because of reply to a non existing message. here is the originalmessage (again?) Hi everyone, thirst of all please forgive my bad english :) i have installed wine
2005 Nov 26
1
Another patch of win32-service for nice startup.
...bRet; DWORD dwWaitRes; + int i; // Obtain the name of the service. LPTSTR lpszServiceName = lpszArgv[0]; @@ -46,6 +48,15 @@ rb_raise(cDaemonError,"RegisterServiceCtrlHandler failed"); } + // wait for sevice initialization + for(i=1;TRUE;i++) + { + if(WaitForSingleObject(hStartEvent, 1000) == WAIT_OBJECT_0) + break; + + SetTheServiceStatus(SERVICE_START_PENDING, 0, i, 1000); + } + // The service has started. SetTheServiceStatus(SERVICE_RUNNING, NO_ERROR, 0, 0); @@ -241,9 +252,9 @@ } #endif - // Create Thread for service main - h...
2010 Mar 25
3
include/exclude problems
Dear Wayne, I am using rsync to synchronize my working files from home computer to the work computer. I want to sync only the files in some directories and no .files. However, I do need to sync several files from .mozilla director (addressbook, calendar and bookmarks) which are located in the .directory. I use the following command and the "excluded-utk.txt" file rsync -aunvz
2009 Apr 22
0
ActiveX error when running an application(VB6 based)
...et=70101338 0009:Call KERNEL32.TlsFree(00000009) ret=7010ad61 0009:Ret KERNEL32.TlsFree() retval=00000001 ret=7010ad61 0009:Call KERNEL32.CreateMutexA(00000000,00000000,701464a4 "RPCRT4SHRMEM") ret=70101c4f 0009:Ret KERNEL32.CreateMutexA() retval=000000a0 ret=70101c4f 0009:Call KERNEL32.WaitForSingleObject(000000a0,ffffffff) ret=70101c62 0009:Ret KERNEL32.WaitForSingleObject() retval=00000000 ret=70101c62 0009:Call KERNEL32.TlsFree(00000008) ret=7010ad87 0009:Ret KERNEL32.TlsFree() retval=00000001 ret=7010ad87 0009:Call KERNEL32.GetCurrentProcessId() ret=7010af09 0009:Ret KERNEL32.GetCurrentProces...
2011 Oct 02
1
World of WarCraft: Retail Build (build 14545)
...--- 7BC75103 ntdll.dll NTDLL_wait_for_multiple_objects+595 (00000001,00000004,00000000,00000000) 7BC753F9 ntdll.dll NtWaitForMultipleObjects+105 (00000001,00000000,00000000,1292E92C) 7B867C66 KERNEL32.dll WaitForMultipleObjectsEx+246 (00000001,00000000,00000000,00000000) 7B867D7C KERNEL32.dll WaitForSingleObject+60 (000023E8,00A6C4F0,7BC9AFF4,00A6C2A9) 00AAFB85 Wow.exe <unknown symbol>+0 (0A52A230,1292EA68,0A52A230,00000066) 00A6C2A9 Wow.exe <unknown symbol>+0 (0A52A230,00000066,7BC6EA20,81FACF10) 00A6C530 Wow.exe <unknown symbol>+0 (0A52A09C,1292EB48,00A6C4F0,7BC9AFF4) 7BC...
2009 Apr 22
0
wine-users Digest, Vol 45, Issue 102
...et=70101338 0009:Call KERNEL32.TlsFree(00000009) ret=7010ad61 0009:Ret KERNEL32.TlsFree() retval=00000001 ret=7010ad61 0009:Call KERNEL32.CreateMutexA(00000000,00000000,701464a4 "RPCRT4SHRMEM") ret=70101c4f 0009:Ret KERNEL32.CreateMutexA() retval=000000a0 ret=70101c4f 0009:Call KERNEL32.WaitForSingleObject(000000a0,ffffffff) ret=70101c62 0009:Ret KERNEL32.WaitForSingleObject() retval=00000000 ret=70101c62 0009:Call KERNEL32.TlsFree(00000008) ret=7010ad87 0009:Ret KERNEL32.TlsFree() retval=00000001 ret=7010ad87 0009:Call KERNEL32.GetCurrentProcessId() ret=7010af09 0009:Ret KERNEL32.GetCurrentProces...
2008 May 18
2
Pure win32-thread library?
...# Stores the thread id ) if @thread == 0 raise Error, get_last_error end @thread_id = thread_id.unpack(''L'')[0] end def join(limit = INFINITE) limit = limit * 1000 unless limit == INFINITE WaitForSingleObject(@thread, limit) ReleaseMutex(@@mutex) end def terminate exit_code = [0].pack(''L'') return nil unless TerminateThread(@thread, exit_code) end def exit ExitThread(0) end def priority GetThr...
2011 Jun 25
6
Ubuntu 11.04: World of Warcraft issue
...r_multiple_objects+571 (0x00000001,0x00000004,0x00000000,0x00000000) > 7BC78FF9 ntdll.dll NtWaitForMultipleObjects+105 (0x00000001,0x00000000,0x0AD5E9D0,0x042125D8) > 7B866342 KERNEL32.dll WaitForMultipleObjectsEx+274 (0x00000001,0x00000000,0x00000000,0x042137B4) > 7B86645C KERNEL32.dll WaitForSingleObject+60 (0x0000227C,0x0AD5EA40,0x00000064,0x0AD5EA68) > 007746A0 WoW.exe <unknown symbol>+0 (0x00000064,0x0AD5EA68,0x042137C8,0x7FF84F10) > 008CF786 WoW.exe <unknown symbol>+0 (0x042137C8,0x7FF84F10,0x00002280,0x042137C8) > 0076FFCB WoW.exe <unknown symbol>+0 (0...
2016 Oct 24
2
Win32: problem with tinc-up script
Okey, after more extensive R&D and testing I came up with 2 final solutions: 1) external tool: wipchg 2) internal tincd: wait_device(int secs) Both solution works 100% time (tested on Win2003). I publish them here, so interested parties can do they own testing. 1) ftp://borg.uu3.net/home/borg/tmp/wipchg.tgz You need Mingw compiler to build this. 2)
2009 Jan 07
3
[LLVMdev] LLVM optmization
...; tini = GetTickCount(); for(i=0; i< num_th;i++) mainThread[i] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)thread_call, (LPVOID)TESTE, 0, (DWORD *)&iThreadId); //WaitForMultipleObjects( num_th, (const HANDLE* )mainThread, TRUE, INFINITE); for( i=0; i < num_th; i++) { WaitForSingleObject( mainThread[i], INFINITE ); CloseHandle(mainThread[i]); } tfim = GetTickCount(); printf("\n chamou = %s",spenttime () ); return 0; } ////////////////////////// ; ModuleID = 'testeadvpl.c' target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:6...
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
2009 Jul 17
1
[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
2016 Oct 24
0
Win32: problem with tinc-up script
...In both solutions, I do see a race condition: first GetIpAddrTable() is called, then NotifyAddrChange() is called. If the IP address is assigned between those two calls, you will not get a notification anymore. I think you should instead call NotifyAddrChange() first, then do GetIpAddrTable(), then WaitForSingleObject() if there is no IP address assigned to tinc's interface yet. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 8...
2000 Jun 20
3
WinAmp Plugin
Hi, I downloaded afew off files from the site (www.vorbis.com) and also downloaded the winamp plugin (dll file), but I am unable to play the off files. -- Ramakrishnan.M | Phone : (+91-80)-5099132 DSP Applications Group, Texas Instruments | email : rkrishnan@ti.com Bangalore, India | rkrishnan_m@yahoo.com ---