Opened 13 years ago
Closed 12 years ago
#2316 closed Bug (Fixed)
PowerPoint COM event handler initialization error
| Reported by: | anonymous | Owned by: | Jon |
|---|---|---|---|
| Milestone: | 3.3.11.2 | Component: | AutoIt |
| Version: | 3.3.10.2 | Severity: | None |
| Keywords: | Cc: |
Description
I'm getting this error while trying to initialize a com event handler for Office PowerPoint events:
err.number is: -2147316576
err.windescription: Type mismatch.
The code i run is:
Local $oMyError = ObjEvent("AutoIt.Error","MyErrFunc") ; Initialize a COM error handler
Local $AppPowerPoint = ObjCreate("PowerPoint.Application")
If Not IsObj($AppPowerPoint) Then
MsgBox(0, "Error", "$AppPowerPoint is not an Object.")
Else
MsgBox(0, "Error", "Successfully created Object $AppPowerPoint.")
EndIf
Local $pptEvt = ObjEvent($AppPowerPoint, "PowerPointEvent_") ; Initialize PowerPoint COM event handlers
Func MyErrFunc($oError)
ConsoleWrite("err.number is: " & @TAB & $oError.number & @CRLF & "err.windescription:" & @TAB & $oError.windescription & @CRLF)
EndFunc
The error occurs on the line:
Local $pptEvt = ObjEvent($AppPowerPoint, "PowerPointEvent_") ; Initialize PowerPoint COM event handlers
and happens on Version 3.3.8.1 and 3.3.9.4 (Beta), but not on 3.3.6.1.
Tested on Win8 x64 and Win7 x64
Relevant thread: http://www.autoitscript.com/forum/topic/148251-powerpoint-com-event-handler-initialization-error/
Attachments (0)
Change History (4)
comment:1 by , 13 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
comment:2 by , 13 years ago
comment:3 by , 12 years ago
| Resolution: | Rejected |
|---|---|
| Status: | closed → reopened |
| Version: | 3.3.8.1 → 3.3.10.2 |
comment:4 by , 12 years ago
| Milestone: | → 3.3.11.2 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | reopened → closed |
Fixed by revision [9536] in version: 3.3.11.2

In fact As I am not and COM expert I cannot give definitive answer.
I suspect the problem is really around PowePoint itself.