Opened 16 years ago
Closed 16 years ago
#717 closed Bug (Works For Me)
_EventLog__Report is crashing script
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | 3.2.12.1 | Severity: | None |
Keywords: | Cc: |
Description
AutoIT script is crashing when trying to send event to eventlog (UDF).
Env: WinXP32Bit SP2
AutoIT_v3.2.12.1
Script ran from interpreter (autoit3.exe, not precomiled).
Code:
Func sendToEventLog ($message,$type=4)
Local $hEventLog, $aData[4]=[3, 1, 2, 3]
$hEventLog = _EventLogOpen("", "Application")
msgbox(0,"text","test")
_EventLogReport($hEventLog, $type, 0, 1000, "Administrator", $message, $aData)
_EventLogClose ($hEventLog)
EndFunc
msgbox is shown fine, after that crash.
Attachments (1)
Change History (4)
Changed 16 years ago by anonymous
comment:1 follow-up: ↓ 2 Changed 16 years ago by Jos
comment:2 in reply to: ↑ 1 Changed 16 years ago by anonymous
Replying to Jos:
Doesn't look you are using the UDFs from the standard installer.
This works fine for me:
Thanks for your feedback.
I use a copy of the AutoIt - Self Extracting Archive, no installer at all.
Is there a dependency on the installer ?
Due to time pressure i had to go back to a VB- Helperscript to handle eventlog.
comment:3 Changed 16 years ago by Gary
- Resolution set to Works For Me
- Status changed from new to closed
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.
Doesn't look you are using the UDFs from the standard installer.
This works fine for me:
Jos