Modify

#3021 closed Bug (Fixed)

AutoIt Crash - calling obj method

Reported by: mLipok Owned by: Jon
Milestone: 3.3.15.4 Component: AutoIt
Version: 3.3.13.20 Severity: None
Keywords: Cc:

Description

Repro code:

#include <ie.au3>

MsgBox(0, 'Correct', _IEObj().Navigate('https://www.autoitscript.com/forum/'))
MsgBox(0, 'Crash', _IEObj.Navigate('https://www.autoitscript.com/forum/'))

Func _IEObj()
	Local $oIE = _IECreate("www.autoitscript.com")
	Return $oIE
EndFunc

Result:

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "Z:\TOOLs\Macro\FORUM\___FORUM -- na forum\TEST_IE_CRASH.au3" /UserParams    
+>02:53:32 Starting AutoIt3Wrapper v.15.503.1200.1 SciTE v.3.5.4.0   Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0415)
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\user\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\user\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.13.21)  from:C:\Program Files (x86)\AutoIt3\Beta  input:Z:\TOOLs\Macro\FORUM\___FORUM -- na forum\TEST_IE_CRASH.au3
+>02:53:32 AU3Check ended.rc:0
>Running:(3.3.13.20):C:\Program Files (x86)\AutoIt3\Beta\autoit3.exe "Z:\TOOLs\Macro\FORUM\___FORUM -- na forum\TEST_IE_CRASH.au3"    
--> Press Ctrl+F11 to Restart or Ctrl+Break -or- F11 to Stop
!>02:53:57 AutoIt3.exe ended.rc:-1073741819
+>02:53:57 AutoIt3Wrapper Finished.
>Exit code: 3221225477    Time: 25.39

Attachments (0)

Change History (6)

comment:1 by jchd18, on May 12, 2015 at 2:39:23 AM

Any function reference and dummy method will do:

$What = VarGetType.PleaseDoNotCrash()

comment:2 by mLipok, on May 12, 2015 at 6:37:08 AM

It is even stranger - AutoIt unexpected behavior.
Regardless of whether my code is correct, incorrect or foolish,
AU3Check should it catch, or finally AutoIt should also catch it, and announce that it is a syntax error in line ....
It should not however reach a situation in which any program exits via CRASH.

comment:3 by J-Paul Mesnage, on Aug 10, 2020 at 11:44:15 AM

Hi, Au3Check cannot catch such expression as it is not sensitivento variable type/value
I did a fix that I send to Jon for integration

comment:4 by J-Paul Mesnage, on Aug 10, 2020 at 12:32:12 PM

Owner: set to J-Paul Mesnage
Status: newassigned

comment:6 by Jon, on Jun 11, 2021 at 1:14:58 PM

Milestone: 3.3.15.4
Owner: changed from J-Paul Mesnage to Jon
Resolution: Fixed
Status: assignedclosed

Fixed by revision [12552] in version: 3.3.15.4

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.