Modify

Opened 15 years ago

Closed 15 years ago

#1878 closed Bug (Wont Fix)

Hard crash on VirtualBox.GuestOSTypes

Reported by: rbhkamal@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.6.1 Severity: None
Keywords: Cc:

Description

VirtualBox provides a COM interface through VirtualBox.VirtualBox. AutoIt crashes with core dump on Windows 7 (at least) when GuestOSTypes is invoked.

I verified that the crash wasn't from the virtualbox code by testing the same code on python

Here is the code:

$oVBox_VirtualBox = ObjCreate( "VirtualBox.VirtualBox" )
ConsoleWrite( "Version: " & $oVBox_VirtualBox.Version & @CRLF )
ConsoleWrite( "GuestOSTypes: " & $oVBox_VirtualBox.GuestOSTypes & @CRLF )

When running the code in python I get the following output for OSTypes:

3.2.12_OSE
(<COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>, <COMObject <unknown>>)

Attachments (0)

Change History (2)

comment:1 by rbhkamal@…, 15 years ago

Here is the code in python:

import win32com.client

object = win32com.client.Dispatch("VirtualBox.VirtualBox")
if not object:
    print "Failed to get object"
    exit


print object.Version
osTypes =  object.GuestOSTypes

os = ""
for os in osTypes:
    print "FamilyId" + str(os.FamilyId)
    print "FamilyDescription" + str(os.FamilyDescription)
    print "Id" + str(os.Id)
    print "Description" + str(os.Description)
    print "RecommendedRAM" + str(os.RecommendedRAM)
    print "RecommendedVRAM" + str(os.RecommendedVRAM)
    print "-------------------"
    
    

comment:2 by Jon, 15 years ago

Resolution: Wont Fix
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.