Opened 13 years ago

Closed 12 years ago

#1973 closed Bug (No Bug)

_IEAttach failes and crashes on some special window constellations

Reported by: Samoth Owned by: Gary
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: IE UDF HWND Error _IEAttach Cc: johannes@…


When there is a Web Browser window open not being a TopLevelContainer the function _IEAttach will exit with an error:

E:\Bin\autoit\install\Include\IE.au3 (2675) : ==> The requested action with this object has failed.:
Return SetError($_IEStatus_Success, 0, HWnd($o_object.HWnd()))
Return SetError($_IEStatus_Success, 0, HWnd($o_object.HWnd()^ ERROR

This can be solved by modifying IE.au3 checking whether your IE object is a TopLevelContainer and respond accordingly in Func _IEPropertyGet(ByRef $o_object, $s_property) from line 2669 on as described in my post in the forum. The problem is pretty well caught down over there.

[...] lines 1-2668
Case $s_property = "hwnd"
    If Not __IEIsObjType($o_object, "browser") Then
        __IEErrorNotify("Error", "_IEPropertyGet", "$_IEStatus_InvalidObjectType")
        Return SetError($_IEStatus_InvalidObjectType, 1, 0)
    ;Return SetError($_IEStatus_Success, 0, HWnd($o_object.HWnd()))
    If $o_object.TopLevelContainer Then
        Return SetError($_IEStatus_Success, 0, HWnd($o_object.HWnd()))
        Return SetError($_IEStatus_Success, 0, 0)

It was the same problem in ticket #1415 but this is already closed for not being precise enough. I hope this ticket will help out. As said in this post I should open a ticket. And I searched for a double before finding only this closed one ;-)

Attachments (0)

Change History (1)

comment:1 Changed 12 years ago by trancexx

  • Resolution set to No Bug
  • Status changed from new to closed

This is not bug and that's not solution.
Create and use COM error handler to avoid situations like that.

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.

Add Comment

Modify Ticket

as closed The owner will remain Gary.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.