Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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 follow-up: Changed 13 years ago by Valik

The documentation is correct:

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

comment:2 Changed 13 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

comment:3 in reply to: ↑ description Changed 13 years ago by anonymous

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 Changed 13 years ago by anonymous

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 in reply to: ↑ 1 Changed 13 years ago by RWBaker

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 Changed 13 years ago by Valik

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.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.