Error 87 Invalid Parameter
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow error invalid parameter 87 dragon the company Business Learn more about hiring developers or posting ads with us Stack Overflow
Error 87 The Parameter Is Incorrect
Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of error 87 the parameter is incorrect delayed start 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up OpenProcess error 87 invalid parameter up vote 1 down vote favorite I'm trying to write a program which
Error 87 The Parameter Is Incorrect Windows 7
executes make.exe from MinGW distribution in the current directory and makes use of its STDOUT data and exit code. I have a handle to process STDOUT where I fetch data from, created with CreatePipe. When I get an ERROR_HANDLE_EOF on that pipe I assume the process has exited and try to get its exit code: if(session->pid == 0) return; HANDLE hp = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_TERMINATE, TRUE, session->pid); if(hp == NULL) { printf("OpenProcess(%i) failed, error 87 the parameter is incorrect robocopy error: %i\n", session->pid, (int)GetLastError()); return; } My code works on all other MinGW utilities I tested (like pwd, ls, etc.), I get the STDOUT and the exit code with no problem. But when I try it on make, the above code displays the following message: "OpenProcess(2032) failed, error: 87" I googled for error code 87, and it says "Invalid parameter". I don't see what could be invalid about a positive process id like 2032. Any ideas? winapi makefile getlasterror openprocess share|improve this question asked Feb 14 '11 at 1:14 user389419 12817 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted You should use the handle from CreateProcess instead of using OpenProcess on the PID. OpenProcess only works if the process object still exists. By the time you call OpenProcess if the process object is gone - the result is a call with invalid parameter. The success you got with other utilities is either due to a race condition (which may fail some times) or you kept the original handle to the child process open. share|improve this answer answered Feb 14 '11 at 1:25 John 4,47911333 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sig
identify the specific cause of the error 87 the parameter is incorrect starting service error and the correct way to proceed. Please send technical support a copy http://stackoverflow.com/questions/4988082/openprocess-error-87-invalid-parameter of the BackupAssist diagnostics file using the steps provided in the Resolution section below. To send us diagnostic information, please follow these steps: Open BackupAssist. Click https://www.backupassist.com/support/en/knowledgebase/BA711-Win32-error-87-invalid-parameter.html?cshid=BA711 on the Help menu at the top of the console. Select Feedback and Support... from the drop down menu. Click on Contact Support. Enter the details asked for. Make sure the tick box stating 'Submit system diagnostics to help our support team with your query' is ticked. This will zip all your BackupAssist settings so that we can review these specifically for your environment. Last updated Created Further assistance 19th Mar 2015 02nd Oct 2008 BackupAssist Support page
DriverDoc WinSweeper SupersonicPC FileViewPro About Support Contact Errors Troubleshooting › Windows System Error Codes › Microsoft Corporation › Windows Operating System http://www.solvusoft.com/en/errors/windows-system-error-codes/microsoft-corporation/windows-operating-system/error-87-error-invalid-parameter/ › ERROR_INVALID_PARAMETER (Error 87) How To Fix Error 87 (ERROR_INVALID_PARAMETER) Error Number:Error 87 Error Name:ERROR_INVALID_PARAMETER Error Description:The parameter is incorrect. Hexadecimal:0x57 Developer:Microsoft Corporation Software:Windows https://support.software.dell.com/intrust/kb/39764 Operating System Applies to:Windows XP, Vista, 7, 8, 10 Download NowWinThruster 2015 - Scan your PC for computer errors. Compatible with Windows 10, error 87 8, 7, Vista, XP and 2000 Symptoms of Error 87 “ERROR_INVALID_PARAMETER” appears and crashes the active program window. Your PC frequently crashes with Error 87 when running the same program. “The parameter is incorrect.” is displayed. Windows runs sluggishly and responds slowly to mouse or keyboard input. Your error 87 the computer periodically “freezes” for a few seconds at a time. These 87 error messages can appear during program installation, while a Microsoft Corporation-related software program (eg. Windows Operating System) is running, during Windows startup or shutdown, or even during the installation of the Windows operating system. Keeping track of when and where your ERROR_INVALID_PARAMETER error occurs is a critical piece of information in troubleshooting the problem. Causes of Error 87 Corrupt download or incomplete installation of Windows Operating System software. Corrupt Windows registry keys associated with Windows Operating System. Virus or malware infection that has corrupted Windows system files or Windows Operating System-related program files. Another program maliciously or mistakenly deleted Windows Operating System-related files. ERROR_INVALID_PARAMETER. Windows System Error Codes such as “ERROR_INVALID_PARAMETER” can be caused by a variety of factors, so it is important that you troubleshoot each of the poss