Opened 10 years ago

Last modified 4 weeks 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: Severity: None
Keywords: COM Cc:


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

Attachments (1)

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

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by anonymous

minimal and standalone script that crashes AutoIt

comment:1 Changed 10 years ago by Melba23

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.


comment:2 Changed 10 years ago by Melba23

  • Owner set to Jon
  • Status changed from new to assigned

comment:3 Changed 4 years ago by Jpm

  • Owner changed from Jon to Jpm

Fix sent to Jon

comment:4 Changed 4 weeks ago by Jpm

  • Owner changed from Jpm to Jon

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as assigned The owner will remain Jon.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.