Modify

#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 by J-Paul Mesnage, on Oct 23, 2008 at 12:56:02 PM

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

comment:2 by Valik, on Oct 23, 2008 at 4:58:58 PM

Resolution: No Bug
Status: newclosed

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.

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.