﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1892	eventlog	djmunis@…		"Hi, I have a problem with eventlog.au3. when I use _eventlog_read() all components of array are ok except description. Sometimes the description do not show how in event viewer.
image of error
http://img683.imageshack.us/img683/8637/errorob.png

The problem seem caused by _eventlog_read() ->> $aEvent[13]=__EventLog_DecodeDesc($tEventLog) ->> Local $aStrings = __EventLog_DecodeStrings($tEventLog) ->>
 $sDesc = StringReplace($sDesc, ""%"" & $iI, $aStrings[$iI])

Func __EventLog_DecodeStrings($tEventLog)
	Local $pEventLog = DllStructGetPtr($tEventLog)
	Local $iNumStrs = DllStructGetData($tEventLog, ""NumStrings"")
	Local $iOffset = DllStructGetData($tEventLog, ""StringOffset"")
	; The data offset is used to calculate buffer sizes.
	Local $iDataOffset = DllStructGetData($tEventLog, ""DataOffset"")
	Local $tBuffer = DllStructCreate(""wchar Text["" & $iDataOffset - $iOffset & ""]"", $pEventLog + $iOffset)

	Local $aStrings[$iNumStrs + 1]
	$aStrings[0] = $iNumStrs
	For $iI = 1 To $iNumStrs
		$aStrings[$iI] = DllStructGetData($tBuffer, ""Text"")
		$iOffset += StringLen($aStrings[$iI]) + 1
		$tBuffer = DllStructCreate(""wchar Text["" & $iDataOffset - $iOffset & ""]"", $pEventLog + $iOffset)
	Next
	Return $aStrings
EndFunc   ;==>__EventLog_DecodeStrings

Can you help me?

contact: djmunis@gmail.com
best regards"	Bug	closed		AutoIt	3.3.6.1	None	Wont Fix	eventlog description	
