Modify

Opened 12 years ago

Last modified 2 years ago

#2887 assigned Bug

AutoIt fails to deallocate a COM object when it gets reassigned

Reported by: anonymous Owned by: Jon
Milestone: Component: AutoIt
Version: 3.3.13.19 Severity: None
Keywords: COM Cc:

Description

Reassigning a value to a COM object results in a crash.

Attachments (1)

COMcrash.au3 (2.0 KB ) - added by anonymous 12 years ago.
minimal and standalone script that crashes AutoIt

Download all attachments as: .zip

Change History (5)

by anonymous, 12 years ago

Attachment: COMcrash.au3 added

minimal and standalone script that crashes AutoIt

comment:1 by Melba23, 12 years ago

Just to make clear what the script shows:

The crash occurs when trying to assign an object to a variable already containing an object without first destroying the previous instance by assigning a non-object value(Null, 0, "", etc) to the variable before the reassignation. If the previous instance is destroyed then the new assignation occurs without problem. It does not matter if the new assignation is the same object or a new one.

M23

comment:2 by Melba23, 11 years ago

Owner: set to Jon
Status: newassigned

comment:3 by J-Paul Mesnage, 6 years ago

Owner: changed from Jon to J-Paul Mesnage

Hi,
Fix sent to Jon

comment:4 by J-Paul Mesnage, 2 years ago

Owner: changed from J-Paul Mesnage to Jon

Modify Ticket

Action
as assigned 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.