Opened on Feb 19, 2012 at 4:32:14 PM
Closed on Feb 19, 2012 at 6:13:48 PM
Last modified on Feb 20, 2012 at 1:21:02 AM
#2137 closed Bug (No Bug)
"typo" in "Function Reference" for "ProcessWaitClose"
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.8.1 | Severity: | None |
| Keywords: | Cc: |
Description
In my testing, I find that non-zero should be replaced by zero in "Return Value" of "ProcessWaitClose":
Failure: Returns 0 if the wait timed out. On invalid PID @error is set to non-zero and @extended is set to 0xCCCCCCCC.
Should read:
Failure: Returns 0 if the wait timed out. On invalid PID @error is set to zero and @extended is set to 0xCCCCCCCC.
Attachments (0)
Change History (6)
follow-up: 5 comment:1 by , on Feb 19, 2012 at 6:13:39 PM
comment:2 by , on Feb 19, 2012 at 6:13:48 PM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
comment:3 by , on Feb 19, 2012 at 7:39:19 PM
Replying to rwb@…:
ProcessWaitClose(0) ; <- PID = 1 is defined...no error
MsgBox(4096, "", @error)
Comment on the above...on my system PID is defined, hence return is 1, correct
I talked about failure
On my system PID = 1 is not defined...
ProcessWaitClose(1)
MsgBox(4096, "", @error) ; <- PID = 1 not defined, returns: 0
Thanks for your time!
RWBaker
In my testing, I find that non-zero should be replaced by zero in "Return Value" of "ProcessWaitClose":
Failure: Returns 0 if the wait timed out. On invalid PID @error is set to non-zero and @extended is set to 0xCCCCCCCC.
Should read:
Failure: Returns 0 if the wait timed out. On invalid PID @error is set to zero and @extended is set to 0xCCCCCCCC.
comment:4 by , on Feb 19, 2012 at 7:45:03 PM
Sorry...I think I goofed...I should have left a comment.
ProcessWaitClose(0) ; <- PID = 0 is defined...no error
MsgBox(4096, "", @error)
Comment on the above...on my system PID is defined, hence return is 1, correct
I talked about failure
On my system PID = 1 is not defined...
ProcessWaitClose(1)
MsgBox(4096, "", @error) ; <- PID = 1 not defined, returns: 0
comment:5 by , on Feb 20, 2012 at 1:14:46 AM
Replying to Valik:
The documentation is correct:
ProcessWaitClose(0) MsgBox(4096, "", @error)
This proves my point:
ProcessWaitClose(1) ; <-to show failure, we must choose a PID that is '''not''' defined...on my system PID=1 is not defined. MsgBox(4096,@error,Hex(@extended)) ; <- contrary to documentation: @error = 0 , @extended = 0CCCCCCCC is correct in doc.
comment:6 by , on Feb 20, 2012 at 1:21:02 AM
Your point is based on false assumptions made by you. Invalid does not mean "does not exist". It means "not valid". A PID of 1 is valid even if it does not exist at that point in time. A PID of 0 is never valid - thus it is invalid.
The documentation is correct.

The documentation is correct: