Modify

Opened 12 years ago

Closed 12 years ago

#2622 closed Bug (Duplicate)

Object method crash autoit

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: 3.3.11.2 Severity: None
Keywords: Cc:

Description

I have virtual net adapter VMware Virtual Ethernet Adapter for VMnet1 and this script crash autoit with -1073741819 error:

$objWMIService = ObjGet("winmgmts:\\" & @ComputerName & "\root\CIMV2")
$colAdapters = $objWMIService.ExecQuery ("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True")
For $objAdapter in $colAdapters
	 For $i = 0 To UBound($objAdapter.DefaultIPGateway)
		ConsoleWrite($objAdapter.DefaultIPGateway($i) & @LF) ;<<--HERE CRASH AutoIt Version: 3.3.11.2 (Beta) AutoIt3.exe ended.rc:-1073741819
	Next
Next

Attachments (0)

Change History (4)

comment:1 by jchd18, 12 years ago

AutoIt arrays indices start at 0 and end at UBound(array) - 1
This is not the place to ask such basic questions. General Help forum exists for a reason.

comment:2 by anonymous, 12 years ago

jchd18, this report not about autoit array and its ubound. If you can read you will see, that it about autoit crash with runtime errror -1073741819

comment:3 by anonymous, 12 years ago

This is the same bug as reported in ticket #2613.

comment:4 by Jon, 12 years ago

Resolution: Duplicate
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


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