﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3277	_IEFrameGetObjByName crashes Script after many uses on Win7 and newest AutoIt Version v3.3.14.2	ixam		"First of all here is the Forum post I made:
[https://www.autoitscript.com/forum/topic/184469-ie-functions-throw-error-after-many-calls-in-a-while-loop]

Anyway I´ll summarize when you execute this example script:


{{{
#include <ie.au3>


Local $oIE = _IE_Example(""iframe"")
Local $oFrame
Local $i=0
Local $tdStart=TimerInit()
While 1
    Local $oFrame = _IEFrameGetObjByName($oIE, ""iFrameTwo"")
    $i+=1
    If Not Mod($i,10) Then
    ConsoleWrite($i&@CRLF)
    Sleep(1)
    EndIf
    If $i>10000 Then ExitLoop
WEnd
ConsoleWrite(TimerDiff($tdStart)&@TAB&$i& ' Times looped'&@CRLF)
_IEQuit($oIE)
}}}

I could test this script on 2 Windows 7 PCs and 1 Windows 10 PC,
the Script crashes on both Windows 7 PCs, but not on the Windows 10 PC (all with up to date IE). But I found out it only happens with the newest Version of Autiot v3.3.14.2. If I compile the Script with v3.3.12.0 it never crashes on any PC. 
The Error Message in the Console is as follows:


{{{
""C:\Program Files (x86)\AutoIt3\Include\ie.au3"" (1811) : ==> The requested action with this object has failed.:
Return SetError($_IESTATUS_Success, $oTemp.GetElementsByTagName($sTagName).length, $oTemp.GetElementsByTagName($sTagName))
Return SetError($_IESTATUS_Success, $oTemp^ ERROR
->12:16:20 AutoIt3.exe ended.rc:1
}}}
"	Bug	closed		AutoIt	3.3.14.2	None	Duplicate	Bug, Memory Leak, _IEFrameGetObjByName, crash	
