Modify

#2137 closed Bug (No Bug)

"typo" in "Function Reference" for "ProcessWaitClose"

Reported by: rwb@… 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)

comment:1 by Valik, on Feb 19, 2012 at 6:13:39 PM

The documentation is correct:

ProcessWaitClose(0)
MsgBox(4096, "", @error)

comment:2 by Valik, on Feb 19, 2012 at 6:13:48 PM

Resolution: No Bug
Status: newclosed

in reply to:  description comment:3 by anonymous, 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 anonymous, 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

in reply to:  1 comment:5 by RWBaker, 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 Valik, 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.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.