Modify

Opened 11 years ago

Closed 11 years ago

#637 closed Bug (No Bug)

StdoutRead function seems to now miss data on public and beta releases

Reported by: fill_hard@… Owned by:
Milestone: Component: AutoIt
Version: 3.2.12.1 Severity: None
Keywords: Cc:

Description

I updated to the latest Public (3.2.12.1) and found my script no longer worked. On debuging found that StdoutRead failed to return all of the data, it seems to miss the last line.

Thanks for the speedy response to my previous bug report about this problem, I have tried both solution you suggested and I'm still getting the same output as before.

Listing C:\Documents and Settings\TestUser\
New files added to this directory will not be encrypted.

Not

Listing C:\Documents and Settings\TestUser\
New files added to this directory will not be encrypted.

U My Documents

I'm I still doing it wrong ?

Here are my modified scripts.

Modified Script 1:

#include <Constants.au3>

$STDOUTData = ""
$Cipher = Run (@SystemDir & "\cipher " & """" & @MyDocumentsDir & """", @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)

ProcessWaitClose($Cipher)
$STDOUTDATA = StdoutRead($Cipher)

MsgBox (0, "STDOUT Read Data:", $STDOUTData)

Modified Script 2:

#include <Constants.au3>

$STDOUTData = ""
$Cipher = Run (@SystemDir & "\cipher " & """" & @MyDocumentsDir & """", @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)

While 1

$STDOUTData &= StdoutRead ($Cipher)
If @error Then ExitLoop

Wend

MsgBox (0, "STDOUT Read Data:", $STDOUTData)

Attachments (0)

Change History (2)

comment:1 Changed 11 years ago by Jpm

ReRead the updated doc some change have been made.
Valik can tell more about the difference.

comment:2 Changed 11 years ago by Valik

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

Why you felt the need to create an entirely new ticket is beyond me. This is the SECOND time you've created a ticket for a support question. This time I'm not answering this one here. Ask on the forum and in the future make damn sure you actually have a bug to report before you create a ticket.

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.