Opened on Jul 7, 2009 at 11:25:37 PM
Closed on Oct 11, 2009 at 8:59:14 AM
Last modified on Feb 24, 2010 at 11:00:13 PM
#1058 closed Bug (Fixed)
Eventlog.au3 in Beta
| Reported by: | twillster | Owned by: | Jpm |
|---|---|---|---|
| Milestone: | 3.3.1.2 | Component: | AutoIt |
| Version: | 3.3.1.1 | Severity: | None |
| Keywords: | eventlog beta description | Cc: |
Description
EventLog.au3 in Beta does not read the event log description correctly. It returns multiples of 0. Sometimes none, sometimes 1 or 2 and then occasionally more. I have tested between Beta and 3.3.0.0 and 3.3.0.0 seems to do okay with the description (though not always complete). Not sure where the problem is aside from that but I am pretty sure it's located somewhere in the DecodeDesc function.
I attached the code that I am seeing that reproduces it. It was some stuff from the forums that I found to test with.
Thanks,
Adam
Attachments (1)
Change History (5)
by , on Jul 7, 2009 at 11:26:34 PM
| Attachment: | events.au3 added |
|---|
comment:1 by , on Jul 8, 2009 at 7:59:56 PM
Confirmed issue with simplified reproducer (only show last 10 records):
#include <EventLog.au3> Global $box = @ComputerName Global $hEventLog = _EventLog__Open($box, "System") Global $iCnt = _EventLog__Count($hEventLog) Global $iOldest = _EventLog__Oldest($hEventLog) Global $aEvent ConsoleWrite(@LF & "; Show newest 10 records" & @LF) $aEvent = _EventLog__Read($hEventLog, False, True, $iCnt + $iOldest - 11) ; Set pointer to desired record For $i = $iCnt + $iOldest - 10 To $iCnt + $iOldest - 1 $aEvent = _EventLog__Read($hEventLog, True) For $j = 0 To 14 ConsoleWrite($i & ": [" & $j & "] = " & $aEvent[$j] & @CRLF) Next Next _EventLog__Close($hEventLog)
Missing fields in Beta (they are present in Prod) are: [10] Event Source, [11] Computer name, and [13] Description
comment:2 by , on Jul 10, 2009 at 1:36:55 PM
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:3 by , on Oct 11, 2009 at 8:59:14 AM
| Milestone: | → 3.3.1.2 |
|---|---|
| Owner: | changed from to |
| Resolution: | → Fixed |
| Status: | assigned → closed |
Fixed in version: 3.3.1.2
comment:4 by , on Feb 24, 2010 at 11:00:13 PM
AutoIt v3.3.4.0 Bug
Function _EventLogRead
The array 11 "Computer" does not return the computer name. It returns the Array 10 Soures. Note the missing letter "A" also
The array 12 “Username” does not return the complete line. It should be “NT AUTHORITY\SYSTEM”
Helpfile example run.
Source ............: Automatic LiveUpdate Scheduler
Computer ..........: utomatic LiveUpdate Scheduler
Username ..........: NT AUTHORITY

au3 to test description output